diff options
author | Chao Yu <chao@kernel.org> | 2025-03-05 17:11:46 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2025-03-11 03:25:53 +0000 |
commit | 1cf6b5670af1f4e9d5bf2f7201e368733c59cbdd (patch) | |
tree | aba3c39b15651a301476b63751de1376d885b6fa /fs/f2fs/node.h | |
parent | c2ecba026586cda6c7dc0fe9e6e60e7e9386c3bd (diff) |
f2fs: do sanity check on inode footer in f2fs_get_inode_page()
This patch introduces a new wrapper f2fs_get_inode_page(), then, caller
can use it to load inode block to page cache, meanwhile it will do sanity
check on inode footer.
Signed-off-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 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/f2fs/node.h b/fs/f2fs/node.h index 281d53c95c9a..5079c6a2298d 100644 --- a/fs/f2fs/node.h +++ b/fs/f2fs/node.h @@ -52,6 +52,12 @@ enum { IS_PREALLOC, /* nat entry is preallocated */ }; +/* For node type in __get_node_folio() */ +enum node_type { + NODE_TYPE_REGULAR, + NODE_TYPE_INODE, +}; + /* * For node information */ |