summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/file.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2025-03-31 21:12:49 +0100
committerJaegeuk Kim <jaegeuk@kernel.org>2025-04-28 15:26:47 +0000
commit7d28f13c583c69321b8a63abcd9333bee62ee651 (patch)
tree37a825e6b3335157293f1a14db28a50d009b8e53 /fs/f2fs/file.c
parentf2fs: Convert dnode_of_data->node_page to node_folio (diff)
downloadlinux-7d28f13c583c69321b8a63abcd9333bee62ee651.tar.gz
linux-7d28f13c583c69321b8a63abcd9333bee62ee651.zip
f2fs: Pass a folio to get_dnode_addr()
All callers except __get_inode_rdev() and __set_inode_rdev() now have a folio, but the only callers of those two functions do have a folio, so pass the folio to them and then into get_dnode_addr(). 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/file.c')
-rw-r--r--fs/f2fs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c
index ab432a824ae1..50f56cc820ca 100644
--- a/fs/f2fs/file.c
+++ b/fs/f2fs/file.c
@@ -628,7 +628,7 @@ void f2fs_truncate_data_blocks_range(struct dnode_of_data *dn, int count)
block_t blkstart;
int blklen = 0;
- addr = get_dnode_addr(dn->inode, &dn->node_folio->page) + ofs;
+ addr = get_dnode_addr(dn->inode, dn->node_folio) + ofs;
blkstart = le32_to_cpu(*addr);
/* Assumption: truncation starts with cluster */