diff options
| author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2025-07-08 20:03:07 +0300 |
|---|---|---|
| committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2025-07-22 18:55:47 +0300 |
| commit | 28fde0d7ff293e07f03d8fb9bfa61ede3144b552 (patch) | |
| tree | c510f77a593a03fabf3d24ac7a6fb85ad532d0f8 /fs/f2fs/node.h | |
| parent | 9d717807167f82687592742002bd5fbaeb69380a (diff) | |
| download | linux-28fde0d7ff293e07f03d8fb9bfa61ede3144b552.tar.xz | |
f2fs: Pass a folio to ino_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/node.h')
| -rw-r--r-- | fs/f2fs/node.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/f2fs/node.h b/fs/f2fs/node.h index b5218d642545..3bf9d637168c 100644 --- a/fs/f2fs/node.h +++ b/fs/f2fs/node.h @@ -243,9 +243,9 @@ static inline void set_to_next_nat(struct f2fs_nm_info *nm_i, nid_t start_nid) #endif } -static inline nid_t ino_of_node(struct page *node_page) +static inline nid_t ino_of_node(const struct folio *node_folio) { - struct f2fs_node *rn = F2FS_NODE(node_page); + struct f2fs_node *rn = F2FS_NODE(&node_folio->page); return le32_to_cpu(rn->footer.ino); } |
