summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/node.h
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2025-07-08 18:03:20 +0100
committerJaegeuk Kim <jaegeuk@kernel.org>2025-07-22 15:56:22 +0000
commit171a3aebbd48dd1d43cbf3fc8b1be3b6ab7d5836 (patch)
treef157012015eab02110c524f9d11ae67f86e080ff /fs/f2fs/node.h
parentf2fs: Pass a folio to set_cold_node() (diff)
downloadlinux-171a3aebbd48dd1d43cbf3fc8b1be3b6ab7d5836.tar.gz
linux-171a3aebbd48dd1d43cbf3fc8b1be3b6ab7d5836.zip
f2fs: Pass folios to copy_node_footer()
The only caller has folios so pass them in. Also mark them 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.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/f2fs/node.h b/fs/f2fs/node.h
index 43137b5fcbf4..412ee80afa69 100644
--- a/fs/f2fs/node.h
+++ b/fs/f2fs/node.h
@@ -293,10 +293,11 @@ static inline void fill_node_footer(struct page *page, nid_t nid,
(old_flag & OFFSET_BIT_MASK));
}
-static inline void copy_node_footer(struct page *dst, struct page *src)
+static inline void copy_node_footer(const struct folio *dst,
+ const struct folio *src)
{
- struct f2fs_node *src_rn = F2FS_NODE(src);
- struct f2fs_node *dst_rn = F2FS_NODE(dst);
+ struct f2fs_node *src_rn = F2FS_NODE(&src->page);
+ struct f2fs_node *dst_rn = F2FS_NODE(&dst->page);
memcpy(&dst_rn->footer, &src_rn->footer, sizeof(struct node_footer));
}