summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/node.h
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2025-07-08 18:03:30 +0100
committerJaegeuk Kim <jaegeuk@kernel.org>2025-07-22 15:56:50 +0000
commitfb92a5c9f89a4e5337768c7d2f374669e0ab454b (patch)
tree4f7afb466c9bf48d7b9e29375d60f1217810ff37 /fs/f2fs/node.h
parentf2fs: Pass a folio to is_node() (diff)
downloadlinux-fb92a5c9f89a4e5337768c7d2f374669e0ab454b.tar.gz
linux-fb92a5c9f89a4e5337768c7d2f374669e0ab454b.zip
f2fs: Pass a folio to IS_DNODE()
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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/f2fs/node.h b/fs/f2fs/node.h
index 92e73cff0d21..1b57b61f911b 100644
--- a/fs/f2fs/node.h
+++ b/fs/f2fs/node.h
@@ -350,9 +350,9 @@ static inline bool is_recoverable_dnode(const struct folio *folio)
* `- indirect node ((6 + 2N) + (N - 1)(N + 1))
* `- direct node
*/
-static inline bool IS_DNODE(const struct page *node_page)
+static inline bool IS_DNODE(const struct folio *node_folio)
{
- unsigned int ofs = ofs_of_node(node_page);
+ unsigned int ofs = ofs_of_node(&node_folio->page);
if (f2fs_has_xattr_block(ofs))
return true;