Go to the documentation of this file.
54 #define DATASLOTSIZE 16
55 #define L2DATASLOTSIZE 4
57 #define L2DTSLOTSIZE 5
58 #define DTSLOTHDRSIZE 2
59 #define DTSLOTDATASIZE 30
60 #define DTSLOTDATALEN 15
74 #define DTIHDRDATALEN 11
77 #define NDTINTERNAL(klen) (DIV_ROUND_UP((4 + (klen)), 15))
94 #define DTLHDRDATALEN_LEGACY 13
95 #define DTLHDRDATALEN 11
104 #define DO_INDEX(INODE) (JFS_SBI((INODE)->i_sb)->mntflag & JFS_DIR_INDEX)
109 #define MAX_INLINE_DIRTABLE_ENTRY 13
123 #define DIR_INDEX_VALID 1
124 #define DIR_INDEX_FREE 0
126 #define DTSaddress(dir_table_slot, address64)\
128 (dir_table_slot)->addr1 = ((u64)address64) >> 32;\
129 (dir_table_slot)->addr2 = __cpu_to_le32((address64) & 0xffffffff);\
132 #define addressDTS(dts)\
133 ( ((s64)((dts)->addr1)) << 32 | __le32_to_cpu((dts)->addr2) )
136 #define NDTLEAF_LEGACY(klen) (DIV_ROUND_UP((2 + (klen)), 15))
137 #define NDTLEAF NDTINTERNAL
163 (le32_to_cpu(JFS_IP(IP)->i_dtroot.header.idotdot))
165 #define DTROOTMAXSLOT 9
167 #define dtEmpty(IP) (JFS_IP(IP)->i_dtroot.header.nextindex == 0)
213 #define DTPAGEMAXSLOT 128
215 #define DT8THPGNODEBYTES 512
216 #define DT8THPGNODETSLOTS 1
217 #define DT8THPGNODESLOTS 16
219 #define DTQTRPGNODEBYTES 1024
220 #define DTQTRPGNODETSLOTS 1
221 #define DTQTRPGNODESLOTS 32
223 #define DTHALFPGNODEBYTES 2048
224 #define DTHALFPGNODETSLOTS 2
225 #define DTHALFPGNODESLOTS 64
227 #define DTFULLPGNODEBYTES 4096
228 #define DTFULLPGNODETSLOTS 4
229 #define DTFULLPGNODESLOTS 128
231 #define DTENTRYSTART 1
234 #define DT_GETSTBL(p) ( ((p)->header.flag & BT_ROOT) ?\
235 ((dtroot_t *)(p))->header.stbl : \
236 (s8 *)&(p)->slot[(p)->header.stblindex] )
249 #define DIREND INT_MAX