diff options
| author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2025-07-08 18:03:28 +0100 |
|---|---|---|
| committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2025-07-22 15:56:45 +0000 |
| commit | 1fd0dffdb446c780a555d9b792408560a5c693d6 (patch) | |
| tree | 7c1fe8039ffdcdfaaa1b25ac4b21575bc15e1c1b /fs/f2fs/node.h | |
| parent | f2fs: Use folio_unlock() in f2fs_write_compressed_pages() (diff) | |
| download | linux-1fd0dffdb446c780a555d9b792408560a5c693d6.tar.gz linux-1fd0dffdb446c780a555d9b792408560a5c693d6.zip | |
f2fs: Pass a folio to is_cold_node()
All callers now 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>
Diffstat (limited to 'fs/f2fs/node.h')
| -rw-r--r-- | fs/f2fs/node.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/node.h b/fs/f2fs/node.h index b54c2d520d1e..6daacadb0ee0 100644 --- a/fs/f2fs/node.h +++ b/fs/f2fs/node.h @@ -403,7 +403,7 @@ static inline int is_node(const struct page *page, int type) return le32_to_cpu(rn->footer.flag) & BIT(type); } -#define is_cold_node(page) is_node(page, COLD_BIT_SHIFT) +#define is_cold_node(folio) is_node(&folio->page, COLD_BIT_SHIFT) #define is_fsync_dnode(folio) is_node(&folio->page, FSYNC_BIT_SHIFT) #define is_dent_dnode(folio) is_node(&folio->page, DENT_BIT_SHIFT) |
