summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/node.h
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2025-07-08 18:03:12 +0100
committerJaegeuk Kim <jaegeuk@kernel.org>2025-07-22 15:56:01 +0000
commit61fcaf3eb88d389cd0792983cdd0da9e5cad0901 (patch)
tree18b4da860610ee25227e7201a53acaf9e365e0fd /fs/f2fs/node.h
parentf2fs: Pass a folio to set_fsync_mark() (diff)
downloadlinux-61fcaf3eb88d389cd0792983cdd0da9e5cad0901.tar.gz
linux-61fcaf3eb88d389cd0792983cdd0da9e5cad0901.zip
f2fs: Pass a folio to set_mark()
All callers have a folio so pass it in. Removes a call to compound_head(). Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/node.h')
-rw-r--r--fs/f2fs/node.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/f2fs/node.h b/fs/f2fs/node.h
index 825fa3ad6357..ca0e9361ab68 100644
--- a/fs/f2fs/node.h
+++ b/fs/f2fs/node.h
@@ -418,9 +418,9 @@ static inline void set_cold_node(struct page *page, bool is_dir)
rn->footer.flag = cpu_to_le32(flag);
}
-static inline void set_mark(struct page *page, int mark, int type)
+static inline void set_mark(struct folio *folio, int mark, int type)
{
- struct f2fs_node *rn = F2FS_NODE(page);
+ struct f2fs_node *rn = F2FS_NODE(&folio->page);
unsigned int flag = le32_to_cpu(rn->footer.flag);
if (mark)
flag |= BIT(type);
@@ -429,8 +429,8 @@ static inline void set_mark(struct page *page, int mark, int type)
rn->footer.flag = cpu_to_le32(flag);
#ifdef CONFIG_F2FS_CHECK_FS
- f2fs_inode_chksum_set(F2FS_P_SB(page), page);
+ f2fs_inode_chksum_set(F2FS_F_SB(folio), &folio->page);
#endif
}
-#define set_dentry_mark(folio, mark) set_mark(&folio->page, mark, DENT_BIT_SHIFT)
-#define set_fsync_mark(folio, mark) set_mark(&folio->page, mark, FSYNC_BIT_SHIFT)
+#define set_dentry_mark(folio, mark) set_mark(folio, mark, DENT_BIT_SHIFT)
+#define set_fsync_mark(folio, mark) set_mark(folio, mark, FSYNC_BIT_SHIFT)