summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/node.h
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2025-07-08 18:03:19 +0100
committerJaegeuk Kim <jaegeuk@kernel.org>2025-07-22 15:56:20 +0000
commit53987453349bdd64f4897a83a5e7ee89aa9b907b (patch)
tree2d275f72cbd50bb98880392e46f9cc1fcd6ab1d3 /fs/f2fs/node.h
parentf2fs: Pass a folio to get_nid() (diff)
downloadlinux-53987453349bdd64f4897a83a5e7ee89aa9b907b.tar.gz
linux-53987453349bdd64f4897a83a5e7ee89aa9b907b.zip
f2fs: Pass a folio to set_cold_node()
All callers have a folio so pass it in. Also mark it as const to help the compiler. 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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/f2fs/node.h b/fs/f2fs/node.h
index 5bcda63fa748..43137b5fcbf4 100644
--- a/fs/f2fs/node.h
+++ b/fs/f2fs/node.h
@@ -406,9 +406,9 @@ static inline int is_node(const struct page *page, int type)
#define is_fsync_dnode(page) is_node(page, FSYNC_BIT_SHIFT)
#define is_dent_dnode(page) is_node(page, DENT_BIT_SHIFT)
-static inline void set_cold_node(struct page *page, bool is_dir)
+static inline void set_cold_node(const struct folio *folio, bool is_dir)
{
- 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 (is_dir)