From: Matthew Wilcox (Oracle) Date: Wed, 9 Feb 2022 20:21:46 +0000 (+0000) Subject: jfs: Convert from invalidatepage to invalidate_folio X-Git-Tag: v6.1-rc5~1776^2~29 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c5b56b50d7293668b83b2a3419786fb01fd0b581;p=platform%2Fkernel%2Flinux-starfive.git jfs: Convert from invalidatepage to invalidate_folio This is a straightforward conversion. Signed-off-by: Matthew Wilcox (Oracle) Tested-by: Damien Le Moal Acked-by: Damien Le Moal Tested-by: Mike Marshall # orangefs Tested-by: David Howells # afs --- diff --git a/fs/jfs/jfs_metapage.c b/fs/jfs/jfs_metapage.c index 104ae698..d856aee 100644 --- a/fs/jfs/jfs_metapage.c +++ b/fs/jfs/jfs_metapage.c @@ -555,21 +555,21 @@ static int metapage_releasepage(struct page *page, gfp_t gfp_mask) return ret; } -static void metapage_invalidatepage(struct page *page, unsigned int offset, - unsigned int length) +static void metapage_invalidate_folio(struct folio *folio, size_t offset, + 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 = { .readpage = metapage_readpage, .writepage = metapage_writepage, .releasepage = metapage_releasepage, - .invalidatepage = metapage_invalidatepage, + .invalidate_folio = metapage_invalidate_folio, .set_page_dirty = __set_page_dirty_nobuffers, };