f2fs: Pass a folio to is_dent_dnode()

Both callers have 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>
This commit is contained in:
Matthew Wilcox (Oracle) 2025-07-08 18:03:25 +01:00 committed by Jaegeuk Kim
parent ac576da7c9
commit 4aecdc80b3
2 changed files with 3 additions and 3 deletions

View file

@ -405,7 +405,7 @@ static inline int is_node(const struct page *page, int type)
#define is_cold_node(page) is_node(page, COLD_BIT_SHIFT)
#define is_fsync_dnode(folio) is_node(&folio->page, FSYNC_BIT_SHIFT)
#define is_dent_dnode(page) is_node(page, DENT_BIT_SHIFT)
#define is_dent_dnode(folio) is_node(&folio->page, DENT_BIT_SHIFT)
static inline void set_cold_node(const struct folio *folio, bool is_dir)
{

View file

@ -438,7 +438,7 @@ static int find_fsync_dnodes(struct f2fs_sb_info *sbi, struct list_head *head,
if (!check_only &&
IS_INODE(&folio->page) &&
is_dent_dnode(&folio->page)) {
is_dent_dnode(folio)) {
err = f2fs_recover_inode_page(sbi, folio);
if (err) {
f2fs_folio_put(folio, true);
@ -463,7 +463,7 @@ static int find_fsync_dnodes(struct f2fs_sb_info *sbi, struct list_head *head,
}
entry->blkaddr = blkaddr;
if (IS_INODE(&folio->page) && is_dent_dnode(&folio->page))
if (IS_INODE(&folio->page) && is_dent_dnode(folio))
entry->last_dentry = blkaddr;
next:
/* check next segment */