]> www.infradead.org Git - users/willy/pagecache.git/commitdiff
f2fs: Remove access to page->mapping in f2fs_is_cp_guaranteed()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 17 Mar 2025 13:01:27 +0000 (09:01 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 17 Mar 2025 19:55:41 +0000 (15:55 -0400)
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>
fs/f2fs/data.c

index e61bbc5f833a2adf1ab054ab49197f12c8bf2f80..0103d6941b9b1988d16811be4f2274e21d561d60 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;