]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
f2fs: Remove f2fs_grab_cache_page()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 31 Mar 2025 20:11:29 +0000 (21:11 +0100)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 28 Apr 2025 15:26:35 +0000 (15:26 +0000)
All callers have now been converted to f2fs_grab_cache_folio() so
we can remove this wrapper.

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/f2fs.h

index 12f3a1f8394f0735cf5341b753e787e561e81b19..f69b2447a82b77465575df5507679e38f7fcfcba 100644 (file)
@@ -2863,16 +2863,6 @@ static inline struct folio *f2fs_grab_cache_folio(struct address_space *mapping,
        return folio;
 }
 
-static inline struct page *f2fs_grab_cache_page(struct address_space *mapping,
-                                               pgoff_t index, bool for_write)
-{
-       struct folio *folio = f2fs_grab_cache_folio(mapping, index, for_write);
-
-       if (IS_ERR(folio))
-               return NULL;
-       return &folio->page;
-}
-
 static inline struct page *f2fs_pagecache_get_page(
                                struct address_space *mapping, pgoff_t index,
                                fgf_t fgp_flags, gfp_t gfp_mask)