jfs: Convert from invalidatepage to invalidate_folio

This is 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 5f4b2976
...@@ -555,21 +555,21 @@ static int metapage_releasepage(struct page *page, gfp_t gfp_mask) ...@@ -555,21 +555,21 @@ static int metapage_releasepage(struct page *page, gfp_t gfp_mask)
return ret; return ret;
} }
static void metapage_invalidatepage(struct page *page, unsigned int offset, static void metapage_invalidate_folio(struct folio *folio, size_t offset,
unsigned int length) size_t length)
{ {
BUG_ON(offset || length < PAGE_SIZE); BUG_ON(offset || length < folio_size(folio));
BUG_ON(PageWriteback(page)); BUG_ON(folio_test_writeback(folio));
metapage_releasepage(page, 0); metapage_releasepage(&folio->page, 0);
} }
const struct address_space_operations jfs_metapage_aops = { const struct address_space_operations jfs_metapage_aops = {
.readpage = metapage_readpage, .readpage = metapage_readpage,
.writepage = metapage_writepage, .writepage = metapage_writepage,
.releasepage = metapage_releasepage, .releasepage = metapage_releasepage,
.invalidatepage = metapage_invalidatepage, .invalidate_folio = metapage_invalidate_folio,
.set_page_dirty = __set_page_dirty_nobuffers, .set_page_dirty = __set_page_dirty_nobuffers,
}; };
......
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