]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
f2fs: Remove f2fs_get_new_data_page()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 31 Mar 2025 20:11:18 +0000 (21:11 +0100)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 28 Apr 2025 15:26:34 +0000 (15:26 +0000)
All callers have been converted to call f2fs_get_new_data_folio()
so delete 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/data.c
fs/f2fs/f2fs.h

index 173862439b56b239d26b3ee0f4fe1e9355014149..2aea9723b88c0c2c338eeb4f61c1be2b551f3a1a 100644 (file)
@@ -1257,7 +1257,7 @@ got_it:
         * A new dentry page is allocated but not able to be written, since its
         * new inode page couldn't be allocated due to -ENOSPC.
         * In such the case, its blkaddr can be remained as NEW_ADDR.
-        * see, f2fs_add_link -> f2fs_get_new_data_page ->
+        * see, f2fs_add_link -> f2fs_get_new_data_folio ->
         * f2fs_init_inode_metadata.
         */
        if (dn.data_blkaddr == NEW_ADDR) {
index 17c16f39ea2848c98dcc034f245920e42ece99ba..102887ec58884f139b7320672e480c92eec2011e 100644 (file)
@@ -3997,13 +3997,6 @@ int f2fs_init_post_read_wq(struct f2fs_sb_info *sbi);
 void f2fs_destroy_post_read_wq(struct f2fs_sb_info *sbi);
 extern const struct iomap_ops f2fs_iomap_ops;
 
-static inline
-struct page *f2fs_get_new_data_page(struct inode *inode,
-                       struct page *ipage, pgoff_t index, bool new_i_size)
-{
-       return &f2fs_get_new_data_folio(inode, ipage, index, new_i_size)->page;
-}
-
 /*
  * gc.c
  */