diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-02-09 20:22:05 +0000 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-03-15 08:34:38 -0400 |
commit | d7c994b34c80b661da647833e7e13d7ed04894f0 (patch) | |
tree | 6ab7ad74f2214cd41ae9ab9e4707b11171ffb83f /fs/afs | |
parent | ebf55c886eb7fc3c54d02ba1046f0ee38b81fc10 (diff) | |
download | linux-d7c994b34c80b661da647833e7e13d7ed04894f0.tar.bz2 |
afs: Convert afs_dir_set_page_dirty() to afs_dir_dirty_folio()
This is a trivial change.
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Tested-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Acked-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Tested-by: Mike Marshall <hubcap@omnibond.com> # orangefs
Tested-by: David Howells <dhowells@redhat.com> # afs
Diffstat (limited to 'fs/afs')
-rw-r--r-- | fs/afs/dir.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/afs/dir.c b/fs/afs/dir.c index d30b137be476..932e61e28e5d 100644 --- a/fs/afs/dir.c +++ b/fs/afs/dir.c @@ -45,7 +45,8 @@ static int afs_dir_releasepage(struct page *page, gfp_t gfp_flags); static void afs_dir_invalidate_folio(struct folio *folio, size_t offset, size_t length); -static int afs_dir_set_page_dirty(struct page *page) +static bool afs_dir_dirty_folio(struct address_space *mapping, + struct folio *folio) { BUG(); /* This should never happen. */ } @@ -73,7 +74,7 @@ const struct inode_operations afs_dir_inode_operations = { }; const struct address_space_operations afs_dir_aops = { - .set_page_dirty = afs_dir_set_page_dirty, + .dirty_folio = afs_dir_dirty_folio, .releasepage = afs_dir_releasepage, .invalidate_folio = afs_dir_invalidate_folio, }; |