summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/node.h
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2025-07-08 18:03:22 +0100
committerJaegeuk Kim <jaegeuk@kernel.org>2025-07-22 15:56:28 +0000
commiteca35d6d5a0245ffeb0e80a7d07aab8801b6572a (patch)
treee48d6a5bf4e04a597384d29f999cdcb7b3678be5 /fs/f2fs/node.h
parentf2fs: Pass a folio to fill_node_footer() (diff)
downloadlinux-eca35d6d5a0245ffeb0e80a7d07aab8801b6572a.tar.gz
linux-eca35d6d5a0245ffeb0e80a7d07aab8801b6572a.zip
f2fs: Pass a folio to cpver_of_node()
All callers have a folio so pass it in. 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.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/f2fs/node.h b/fs/f2fs/node.h
index a80be47cd2e5..78a9a411fe77 100644
--- a/fs/f2fs/node.h
+++ b/fs/f2fs/node.h
@@ -262,9 +262,9 @@ static inline unsigned int ofs_of_node(const struct page *node_page)
return flag >> OFFSET_BIT_SHIFT;
}
-static inline __u64 cpver_of_node(const struct page *node_page)
+static inline __u64 cpver_of_node(const struct folio *node_folio)
{
- struct f2fs_node *rn = F2FS_NODE(node_page);
+ struct f2fs_node *rn = F2FS_NODE(&node_folio->page);
return le64_to_cpu(rn->footer.cp_ver);
}
@@ -321,12 +321,12 @@ static inline bool is_recoverable_dnode(const struct folio *folio)
/* Don't care crc part, if fsck.f2fs sets it. */
if (__is_set_ckpt_flags(ckpt, CP_NOCRC_RECOVERY_FLAG))
- return (cp_ver << 32) == (cpver_of_node(&folio->page) << 32);
+ return (cp_ver << 32) == (cpver_of_node(folio) << 32);
if (__is_set_ckpt_flags(ckpt, CP_CRC_RECOVERY_FLAG))
cp_ver |= (cur_cp_crc(ckpt) << 32);
- return cp_ver == cpver_of_node(&folio->page);
+ return cp_ver == cpver_of_node(folio);
}
/*