Lines Matching +full:m +full:- +full:num

1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright (C) International Business Machines Corp., 2000-2002
13 #define LPERDMAP 256 /* num leaves per dmap tree */
18 #define BPERDMAP (LPERDMAP * DBWORD) /* num of blks per dmap */
19 #define L2BPERDMAP 13 /* l2 num of blks per dmap */
22 #define LPERCTL 1024 /* num of leaves per dmapctl tree */
23 #define L2LPERCTL 10 /* l2 num of leaves per dmapctl tree */
25 #define NOFREE ((s8) -1) /* no blocks free */
27 #define L2MAXAG 7 /* l2 max num of AG */
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.
121 #define BLKTOAG(b,sbi) ((b) >> ((sbi)->bmap->db_agl2size))
127 ((s64)(a) << (JFS_SBI((ip)->i_sb)->bmap->db_agl2size))
142 }; /* - 360 - */
148 __le32 nblocks; /* 4: num blks covered by this dmap */
149 __le32 nfree; /* 4: num of free blks in this dmap */
155 }; /* - 4096 - */
170 }; /* - 4096 - */
189 * on-disk aggregate disk allocation map descriptor.
193 __le64 dn_nfree; /* 8: num free blks in aggregate map */
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 - */
212 s64 dn_nfree; /* num free blks in aggregate map */
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)
268 #define LITOL2BSZ(n,m,b) ((((n) == 0) ? (m) : cnttz((n))) + (b)) argument
271 #define BLKTOCTLLEAF(b,m) \ argument
272 (((b) & (((s64)1 << ((m) + L2LPERCTL)) - 1)) >> (m))
275 #define BUDSIZE(s,m) (1 << ((s) - (m))) argument