From: Matthew Wilcox (Oracle) Date: Mon, 31 Mar 2025 20:11:29 +0000 (+0100) Subject: f2fs: Remove f2fs_grab_cache_page() X-Git-Tag: v6.16-rc1~115^2~114 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5c93848a92ace3aa61c5b52eece314cee36562be;p=thirdparty%2Fkernel%2Flinux.git f2fs: Remove f2fs_grab_cache_page() All callers have now been converted to f2fs_grab_cache_folio() so we can remove this wrapper. Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 12f3a1f8394f0..f69b2447a82b7 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -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)