afs: Convert afs_dir_set_page_dirty() to afs_dir_dirty_folio()

This is a trivial change.
Signed-off-by: default avatarMatthew Wilcox (Oracle) <willy@infradead.org>
Tested-by: default avatarDamien Le Moal <damien.lemoal@opensource.wdc.com>
Acked-by: default avatarDamien Le Moal <damien.lemoal@opensource.wdc.com>
Tested-by: Mike Marshall <hubcap@omnibond.com> # orangefs
Tested-by: David Howells <dhowells@redhat.com> # afs
parent ebf55c88
...@@ -45,7 +45,8 @@ static int afs_dir_releasepage(struct page *page, gfp_t gfp_flags); ...@@ -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, static void afs_dir_invalidate_folio(struct folio *folio, size_t offset,
size_t length); 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. */ BUG(); /* This should never happen. */
} }
...@@ -73,7 +74,7 @@ const struct inode_operations afs_dir_inode_operations = { ...@@ -73,7 +74,7 @@ const struct inode_operations afs_dir_inode_operations = {
}; };
const struct address_space_operations afs_dir_aops = { 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, .releasepage = afs_dir_releasepage,
.invalidate_folio = afs_dir_invalidate_folio, .invalidate_folio = afs_dir_invalidate_folio,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment