diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/f2fs_fs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/f2fs_fs.h b/include/linux/f2fs_fs.h index df53e1753a76..8c03f71307c6 100644 --- a/include/linux/f2fs_fs.h +++ b/include/linux/f2fs_fs.h | |||
@@ -146,6 +146,9 @@ struct f2fs_extent { | |||
146 | #define ADDRS_PER_BLOCK 1018 /* Address Pointers in a Direct Block */ | 146 | #define ADDRS_PER_BLOCK 1018 /* Address Pointers in a Direct Block */ |
147 | #define NIDS_PER_BLOCK 1018 /* Node IDs in an Indirect Block */ | 147 | #define NIDS_PER_BLOCK 1018 /* Node IDs in an Indirect Block */ |
148 | 148 | ||
149 | #define ADDRS_PER_PAGE(page, fi) \ | ||
150 | (IS_INODE(page) ? ADDRS_PER_INODE(fi) : ADDRS_PER_BLOCK) | ||
151 | |||
149 | #define NODE_DIR1_BLOCK (DEF_ADDRS_PER_INODE + 1) | 152 | #define NODE_DIR1_BLOCK (DEF_ADDRS_PER_INODE + 1) |
150 | #define NODE_DIR2_BLOCK (DEF_ADDRS_PER_INODE + 2) | 153 | #define NODE_DIR2_BLOCK (DEF_ADDRS_PER_INODE + 2) |
151 | #define NODE_IND1_BLOCK (DEF_ADDRS_PER_INODE + 3) | 154 | #define NODE_IND1_BLOCK (DEF_ADDRS_PER_INODE + 3) |