diff options
| author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2025-07-08 18:03:08 +0100 |
|---|---|---|
| committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2025-07-22 15:55:50 +0000 |
| commit | a63f2de2dd950aaa7c6008e90f30c43b34f643f5 (patch) | |
| tree | 57ab551ac16df0243c173830fc40f04b04ed4b4d /fs/f2fs/data.c | |
| parent | 28fde0d7ff293e07f03d8fb9bfa61ede3144b552 (diff) | |
| download | lwn-a63f2de2dd950aaa7c6008e90f30c43b34f643f5.tar.gz lwn-a63f2de2dd950aaa7c6008e90f30c43b34f643f5.zip | |
f2fs: Pass a folio to nid_of_node()
All callers have a folio so pass it in. Also make the argument const
as the function does not modify it.
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/data.c')
| -rw-r--r-- | fs/f2fs/data.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 95db528bcd35..c4da33de0d1d 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -355,7 +355,7 @@ static void f2fs_write_end_io(struct bio *bio) } f2fs_bug_on(sbi, is_node_folio(folio) && - folio->index != nid_of_node(&folio->page)); + folio->index != nid_of_node(folio)); dec_page_count(sbi, type); if (f2fs_in_warm_node_list(sbi, folio)) |
