summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/node.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2025-07-08 18:03:23 +0100
committerJaegeuk Kim <jaegeuk@kernel.org>2025-07-22 15:56:30 +0000
commit447e4fb5e8800648c6c7b8edaa90ad3f8919ce0b (patch)
tree80cf5b8516bf0a974c9ab15a3065f6beeb6bc673 /fs/f2fs/node.c
parentf2fs: Pass a folio to cpver_of_node() (diff)
downloadlinux-447e4fb5e8800648c6c7b8edaa90ad3f8919ce0b.tar.gz
linux-447e4fb5e8800648c6c7b8edaa90ad3f8919ce0b.zip
f2fs: Pass a folio to f2fs_recover_xattr_data()
One caller passes NULL and the other caller already has 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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c
index 1e7bec223dbe..9c4052282c8c 100644
--- a/fs/f2fs/node.c
+++ b/fs/f2fs/node.c
@@ -2753,7 +2753,7 @@ update_inode:
return 0;
}
-int f2fs_recover_xattr_data(struct inode *inode, struct page *page)
+int f2fs_recover_xattr_data(struct inode *inode, struct folio *folio)
{
struct f2fs_sb_info *sbi = F2FS_I_SB(inode);
nid_t prev_xnid = F2FS_I(inode)->i_xattr_nid;
@@ -2791,8 +2791,8 @@ recover_xnid:
f2fs_update_inode_page(inode);
/* 3: update and set xattr node page dirty */
- if (page) {
- memcpy(F2FS_NODE(&xfolio->page), F2FS_NODE(page),
+ if (folio) {
+ memcpy(F2FS_NODE(&xfolio->page), F2FS_NODE(&folio->page),
VALID_XATTR_BLOCK_SIZE);
folio_mark_dirty(xfolio);
}