summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/node.c
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.c
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.c')
-rw-r--r--fs/f2fs/node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c
index 6ac1540d6aab..1e7bec223dbe 100644
--- a/fs/f2fs/node.c
+++ b/fs/f2fs/node.c
@@ -1485,7 +1485,7 @@ static int sanity_check_node_footer(struct f2fs_sb_info *sbi,
f2fs_warn(sbi, "inconsistent node block, node_type:%d, nid:%lu, "
"node_footer[nid:%u,ino:%u,ofs:%u,cpver:%llu,blkaddr:%u]",
ntype, nid, nid_of_node(folio), ino_of_node(folio),
- ofs_of_node(page), cpver_of_node(page),
+ ofs_of_node(page), cpver_of_node(folio),
next_blkaddr_of_node(folio));
set_sbi_flag(sbi, SBI_NEED_FSCK);
f2fs_handle_error(sbi, ERROR_INCONSISTENT_FOOTER);