diff options
| author | 2026-09-03 16:56:18 -0700 | |
|---|---|---|
| committer | 2026-09-14 15:21:47 +0000 | |
| commit | 87f9a4888f9e81dfc589af25b1ecdb8e99b18934 (patch) | |
| tree | 32dc313421b865539bbf98ea0fc590885d9bedfc /scripts/Makefile.thinlto | |
| parent | f2fs: describe dentry block layout dynamically (diff) | |
f2fs: describe {i,d,id}node block layout dynamically
An inode block ends with five i_nid entries followed by a node footer.
Data block address pointers (i_addr[]) precede them. Similarly, direct and
indirect node blocks contain data addresses or node IDs followed by a node
footer at the end of the block.
Describe struct f2fs_inode, struct direct_node, and
struct indirect_node using flexible array members. Compute the locations
of i_nid and node footers dynamically from the filesystem block size.
Introduce F2FS_INODE_NIDS() and F2FS_NODE_FOOTER() helpers to access these
tail fields.
Compute sbi->addrs_per_inode, sbi->addrs_per_block, and
sbi->nids_per_block in init_sb_info(), and update node management, file
mapping, and recovery paths accordingly.
Signed-off-by: Kelvin Zhang <zhangxp1998@gmail.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
