Lines Matching +full:group +full:- +full:index +full:- +full:bits

1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright (C) International Business Machines Corp., 2000-2002
12 #define LEAFIND (64+16+4+1) /* index of 1st leaf of a dmap tree */
24 #define ROOT 0 /* index of the root of a tree */
25 #define NOFREE ((s8) -1) /* no blocks free */
66 * - the number of dmaps preceding it
67 * - the number of L0 pages preceding its L0 page
68 * - the number of L1 pages preceding its L1 page
69 * - 3 is added to account for the L2, L1, and L0 page for this dmap
70 * - 1 is added to account for the control page of the map.
81 * - the number of dmap pages preceding it
82 * - the number of L0 pages preceding it
83 * - the number of L1 pages preceding its L1 page
84 * - 2 is added to account for the L2, and L1 page for this L0
85 * - 1 is added to account for the control page of the map.
96 * - the number of dmap pages preceding it
97 * - the number of L0 pages preceding it
98 * - the number of L1 pages preceding it
99 * - 1 is added to account for the L2 page
100 * - 1 is added to account for the control page of the map.
119 /* convert disk block number to allocation group number.
121 #define BLKTOAG(b,sbi) ((b) >> ((sbi)->bmap->db_agl2size))
123 /* convert allocation group number to starting disk block
127 ((s64)(a) << (JFS_SBI((ip)->i_sb)->bmap->db_agl2size))
137 __le32 leafidx; /* 4: index of first tree leaf */
142 }; /* - 360 - */
153 __le32 wmap[LPERDMAP]; /* 1024: bits of the working map */
154 __le32 pmap[LPERDMAP]; /* 1024: bits of the persistent map */
155 }; /* - 4096 - */
165 __le32 leafidx; /* 4: index of the first tree leaf */
170 }; /* - 4096 - */
189 * on-disk aggregate disk allocation map descriptor.
197 __le32 dn_maxag; /* 4: max active alloc group number */
198 __le32 dn_agpref; /* 4: preferred alloc group (hint) */
202 __le32 dn_agstart; /* 4: start tree index at AG height */
203 __le32 dn_agl2size; /* 4: l2 num of blks per alloc group */
205 __le64 dn_agsize; /* 8: num of blks per alloc group */
208 }; /* - 4096 - */
216 int dn_maxag; /* max active alloc group number */
217 int dn_agpref; /* preferred alloc group (hint) */
221 int dn_agstart; /* start tree index at AG height */
222 int dn_agl2size; /* l2 num of blks per alloc group */
224 s64 dn_agsize; /* num of blks per alloc group */
226 }; /* - 4096 - */
228 * in-memory aggregate disk allocation map descriptor.
231 struct dbmap db_bmap; /* on-disk aggregate map descriptor */
238 /* macros for accessing fields within in-memory aggregate map descriptor */
265 #define NLSTOL2BSZ(n) (31 - cntlz((n)) + BUDMIN)
267 /* convert leaf index to log2 leaf value */
270 /* convert a block number to a dmap control leaf index */
272 (((b) & (((s64)1 << ((m) + L2LPERCTL)) - 1)) >> (m))
275 #define BUDSIZE(s,m) (1 << ((s) - (m)))