cifs: Convert from invalidatepage to invalidate_folio

A straightforward conversion.
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 9872f4de
...@@ -4754,10 +4754,10 @@ static int cifs_release_page(struct page *page, gfp_t gfp) ...@@ -4754,10 +4754,10 @@ static int cifs_release_page(struct page *page, gfp_t gfp)
return true; return true;
} }
static void cifs_invalidate_page(struct page *page, unsigned int offset, static void cifs_invalidate_folio(struct folio *folio, size_t offset,
unsigned int length) size_t length)
{ {
wait_on_page_fscache(page); folio_wait_fscache(folio);
} }
static int cifs_launder_page(struct page *page) static int cifs_launder_page(struct page *page)
...@@ -4957,7 +4957,7 @@ const struct address_space_operations cifs_addr_ops = { ...@@ -4957,7 +4957,7 @@ const struct address_space_operations cifs_addr_ops = {
.set_page_dirty = cifs_set_page_dirty, .set_page_dirty = cifs_set_page_dirty,
.releasepage = cifs_release_page, .releasepage = cifs_release_page,
.direct_IO = cifs_direct_io, .direct_IO = cifs_direct_io,
.invalidatepage = cifs_invalidate_page, .invalidate_folio = cifs_invalidate_folio,
.launder_page = cifs_launder_page, .launder_page = cifs_launder_page,
/* /*
* TODO: investigate and if useful we could add an cifs_migratePage * TODO: investigate and if useful we could add an cifs_migratePage
...@@ -4981,6 +4981,6 @@ const struct address_space_operations cifs_addr_ops_smallbuf = { ...@@ -4981,6 +4981,6 @@ const struct address_space_operations cifs_addr_ops_smallbuf = {
.write_end = cifs_write_end, .write_end = cifs_write_end,
.set_page_dirty = cifs_set_page_dirty, .set_page_dirty = cifs_set_page_dirty,
.releasepage = cifs_release_page, .releasepage = cifs_release_page,
.invalidatepage = cifs_invalidate_page, .invalidate_folio = cifs_invalidate_folio,
.launder_page = cifs_launder_page, .launder_page = cifs_launder_page,
}; };
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