diff options
| author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2025-07-08 18:03:32 +0100 |
|---|---|---|
| committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2025-07-22 15:56:57 +0000 |
| commit | e8f46b2c3aef32a4efdf5459b26c1f7d96d81826 (patch) | |
| tree | d209d9fb03237bde9f376e44a6bad45caa33abfa | |
| parent | f2fs: Pass a folio to ofs_of_node() (diff) | |
| download | linux-e8f46b2c3aef32a4efdf5459b26c1f7d96d81826.tar.gz linux-e8f46b2c3aef32a4efdf5459b26c1f7d96d81826.zip | |
f2fs: Pass a folio to get_dnode_base()
The only 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>
| -rw-r--r-- | fs/f2fs/f2fs.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 0987f868cdd9..3933327d8cc3 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -3039,20 +3039,20 @@ static inline __le32 *blkaddr_in_node(struct f2fs_node *node) static inline int f2fs_has_extra_attr(struct inode *inode); static inline unsigned int get_dnode_base(struct inode *inode, - struct page *node_page) + struct folio *node_folio) { - if (!IS_INODE(node_page)) + if (!IS_INODE(&node_folio->page)) return 0; return inode ? get_extra_isize(inode) : - offset_in_addr(&F2FS_NODE(node_page)->i); + offset_in_addr(&F2FS_NODE(&node_folio->page)->i); } static inline __le32 *get_dnode_addr(struct inode *inode, struct folio *node_folio) { return blkaddr_in_node(F2FS_NODE(&node_folio->page)) + - get_dnode_base(inode, &node_folio->page); + get_dnode_base(inode, node_folio); } static inline block_t data_blkaddr(struct inode *inode, |
