f2fs: Remove access to page->mapping in f2fs_is_cp_guaranteed()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 31 Mar 2025 20:10:27 +0000 (21:10 +0100)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 28 Apr 2025 15:18:13 +0000 (15:18 +0000)
page->mapping will be removed soon, so call page_folio() on the
page that was passed in.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c

index 5759a8d..2b31471 100644 (file)
@@ -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;