diff options
Diffstat (limited to 'fs/jfs/jfs_dmap.h')
-rw-r--r-- | fs/jfs/jfs_dmap.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/fs/jfs/jfs_dmap.h b/fs/jfs/jfs_dmap.h index 8b14cc8e0228..45ea454c74bd 100644 --- a/fs/jfs/jfs_dmap.h +++ b/fs/jfs/jfs_dmap.h | |||
@@ -1,18 +1,18 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) International Business Machines Corp., 2000-2002 | 2 | * Copyright (C) International Business Machines Corp., 2000-2002 |
3 | * | 3 | * |
4 | * This program is free software; you can redistribute it and/or modify | 4 | * This program is free software; you can redistribute it and/or modify |
5 | * it under the terms of the GNU General Public License as published by | 5 | * it under the terms of the GNU General Public License as published by |
6 | * the Free Software Foundation; either version 2 of the License, or | 6 | * the Free Software Foundation; either version 2 of the License, or |
7 | * (at your option) any later version. | 7 | * (at your option) any later version. |
8 | * | 8 | * |
9 | * This program is distributed in the hope that it will be useful, | 9 | * This program is distributed in the hope that it will be useful, |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See | 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See |
12 | * the GNU General Public License for more details. | 12 | * the GNU General Public License for more details. |
13 | * | 13 | * |
14 | * You should have received a copy of the GNU General Public License | 14 | * You should have received a copy of the GNU General Public License |
15 | * along with this program; if not, write to the Free Software | 15 | * along with this program; if not, write to the Free Software |
16 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 16 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
17 | */ | 17 | */ |
18 | #ifndef _H_JFS_DMAP | 18 | #ifndef _H_JFS_DMAP |
@@ -27,7 +27,7 @@ | |||
27 | #define L2LPERDMAP 8 /* l2 number of leaves per dmap tree */ | 27 | #define L2LPERDMAP 8 /* l2 number of leaves per dmap tree */ |
28 | #define DBWORD 32 /* # of blks covered by a map word */ | 28 | #define DBWORD 32 /* # of blks covered by a map word */ |
29 | #define L2DBWORD 5 /* l2 # of blks covered by a mword */ | 29 | #define L2DBWORD 5 /* l2 # of blks covered by a mword */ |
30 | #define BUDMIN L2DBWORD /* max free string in a map word */ | 30 | #define BUDMIN L2DBWORD /* max free string in a map word */ |
31 | #define BPERDMAP (LPERDMAP * DBWORD) /* num of blks per dmap */ | 31 | #define BPERDMAP (LPERDMAP * DBWORD) /* num of blks per dmap */ |
32 | #define L2BPERDMAP 13 /* l2 num of blks per dmap */ | 32 | #define L2BPERDMAP 13 /* l2 num of blks per dmap */ |
33 | #define CTLTREESIZE (1024+256+64+16+4+1) /* size of a dmapctl tree */ | 33 | #define CTLTREESIZE (1024+256+64+16+4+1) /* size of a dmapctl tree */ |
@@ -57,7 +57,7 @@ | |||
57 | 57 | ||
58 | #define MAXMAPSIZE MAXL2SIZE /* maximum aggregate map size */ | 58 | #define MAXMAPSIZE MAXL2SIZE /* maximum aggregate map size */ |
59 | 59 | ||
60 | /* | 60 | /* |
61 | * determine the maximum free string for four (lower level) nodes | 61 | * determine the maximum free string for four (lower level) nodes |
62 | * of the tree. | 62 | * of the tree. |
63 | */ | 63 | */ |
@@ -122,7 +122,7 @@ static __inline signed char TREEMAX(signed char *cp) | |||
122 | #define BLKTOCTL(b,s,l) \ | 122 | #define BLKTOCTL(b,s,l) \ |
123 | (((l) == 2) ? 1 : ((l) == 1) ? BLKTOL1((b),(s)) : BLKTOL0((b),(s))) | 123 | (((l) == 2) ? 1 : ((l) == 1) ? BLKTOL1((b),(s)) : BLKTOL0((b),(s))) |
124 | 124 | ||
125 | /* | 125 | /* |
126 | * convert aggregate map size to the zero origin dmapctl level of the | 126 | * convert aggregate map size to the zero origin dmapctl level of the |
127 | * top dmapctl. | 127 | * top dmapctl. |
128 | */ | 128 | */ |
@@ -192,13 +192,13 @@ typedef union dmtree { | |||
192 | 192 | ||
193 | /* macros for accessing fields within dmtree */ | 193 | /* macros for accessing fields within dmtree */ |
194 | #define dmt_nleafs t1.nleafs | 194 | #define dmt_nleafs t1.nleafs |
195 | #define dmt_l2nleafs t1.l2nleafs | 195 | #define dmt_l2nleafs t1.l2nleafs |
196 | #define dmt_leafidx t1.leafidx | 196 | #define dmt_leafidx t1.leafidx |
197 | #define dmt_height t1.height | 197 | #define dmt_height t1.height |
198 | #define dmt_budmin t1.budmin | 198 | #define dmt_budmin t1.budmin |
199 | #define dmt_stree t1.stree | 199 | #define dmt_stree t1.stree |
200 | 200 | ||
201 | /* | 201 | /* |
202 | * on-disk aggregate disk allocation map descriptor. | 202 | * on-disk aggregate disk allocation map descriptor. |
203 | */ | 203 | */ |
204 | struct dbmap_disk { | 204 | struct dbmap_disk { |
@@ -237,7 +237,7 @@ struct dbmap { | |||
237 | s64 dn_agsize; /* num of blks per alloc group */ | 237 | s64 dn_agsize; /* num of blks per alloc group */ |
238 | signed char dn_maxfreebud; /* max free buddy system */ | 238 | signed char dn_maxfreebud; /* max free buddy system */ |
239 | }; /* - 4096 - */ | 239 | }; /* - 4096 - */ |
240 | /* | 240 | /* |
241 | * in-memory aggregate disk allocation map descriptor. | 241 | * in-memory aggregate disk allocation map descriptor. |
242 | */ | 242 | */ |
243 | struct bmap { | 243 | struct bmap { |