From: Matthew Wilcox (Oracle) Date: Mon, 31 Mar 2025 20:10:27 +0000 (+0100) Subject: f2fs: Remove access to page->mapping in f2fs_is_cp_guaranteed() X-Git-Tag: v6.16-rc1~115^2~176 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6f8b9318c6eb958f64a985a0af7efc2702f15605;p=thirdparty%2Fkernel%2Flinux.git f2fs: Remove access to page->mapping in f2fs_is_cp_guaranteed() page->mapping will be removed soon, so call page_folio() on the page that was passed in. Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 5759a8d6b926f..2b3147148cc62 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -49,7 +49,7 @@ void f2fs_destroy_bioset(void) bool f2fs_is_cp_guaranteed(struct page *page) { - struct address_space *mapping = page->mapping; + struct address_space *mapping = page_folio(page)->mapping; struct inode *inode; struct f2fs_sb_info *sbi;