aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jfs/jfs_dmap.c
diff options
context:
space:
mode:
authorRichard Knutsson <ricknu-0@student.ltu.se>2006-10-01 02:27:14 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-01 03:39:19 -0400
commit4d81715fc5dfa1680ad47d7edf3ac4a74c5bf104 (patch)
treeec5de5f1e7aa18911fe76957e106fc3492048e86 /fs/jfs/jfs_dmap.c
parentc49c31115067bc7c9a51ffdc735a515151dfa3eb (diff)
[PATCH] fs/jfs: Conversion to generic boolean
Conversion of booleans to: generic-boolean.patch (2006-08-23) Signed-off-by: Richard Knutsson <ricknu-0@student.ltu.se> Cc: Dave Kleikamp <shaggy@austin.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/jfs/jfs_dmap.c')
-rw-r--r--fs/jfs/jfs_dmap.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/jfs/jfs_dmap.c b/fs/jfs/jfs_dmap.c
index c161c98954e0..f05ebb629182 100644
--- a/fs/jfs/jfs_dmap.c
+++ b/fs/jfs/jfs_dmap.c
@@ -403,8 +403,8 @@ int dbFree(struct inode *ip, s64 blkno, s64 nblocks)
403 * 403 *
404 * PARAMETERS: 404 * PARAMETERS:
405 * ipbmap - pointer to in-core inode for the block map. 405 * ipbmap - pointer to in-core inode for the block map.
406 * free - TRUE if block range is to be freed from the persistent 406 * free - 'true' if block range is to be freed from the persistent
407 * map; FALSE if it is to be allocated. 407 * map; 'false' if it is to be allocated.
408 * blkno - starting block number of the range. 408 * blkno - starting block number of the range.
409 * nblocks - number of contiguous blocks in the range. 409 * nblocks - number of contiguous blocks in the range.
410 * tblk - transaction block; 410 * tblk - transaction block;
@@ -2394,7 +2394,7 @@ static int dbFreeBits(struct bmap * bmp, struct dmap * dp, s64 blkno,
2394 * requires the dmap control page to be adjusted. 2394 * requires the dmap control page to be adjusted.
2395 * newval - the new value of the lower level dmap or dmap control 2395 * newval - the new value of the lower level dmap or dmap control
2396 * page root. 2396 * page root.
2397 * alloc - TRUE if adjustment is due to an allocation. 2397 * alloc - 'true' if adjustment is due to an allocation.
2398 * level - current level of dmap control page (i.e. L0, L1, L2) to 2398 * level - current level of dmap control page (i.e. L0, L1, L2) to
2399 * be adjusted. 2399 * be adjusted.
2400 * 2400 *
@@ -3290,7 +3290,7 @@ int dbExtendFS(struct inode *ipbmap, s64 blkno, s64 nblocks)
3290{ 3290{
3291 struct jfs_sb_info *sbi = JFS_SBI(ipbmap->i_sb); 3291 struct jfs_sb_info *sbi = JFS_SBI(ipbmap->i_sb);
3292 int nbperpage = sbi->nbperpage; 3292 int nbperpage = sbi->nbperpage;
3293 int i, i0 = TRUE, j, j0 = TRUE, k, n; 3293 int i, i0 = true, j, j0 = true, k, n;
3294 s64 newsize; 3294 s64 newsize;
3295 s64 p; 3295 s64 p;
3296 struct metapage *mp, *l2mp, *l1mp = NULL, *l0mp = NULL; 3296 struct metapage *mp, *l2mp, *l1mp = NULL, *l0mp = NULL;
@@ -3398,7 +3398,7 @@ int dbExtendFS(struct inode *ipbmap, s64 blkno, s64 nblocks)
3398 j = (blkno & (MAXL1SIZE - 1)) >> L2MAXL0SIZE; 3398 j = (blkno & (MAXL1SIZE - 1)) >> L2MAXL0SIZE;
3399 l1leaf = l1dcp->stree + CTLLEAFIND + j; 3399 l1leaf = l1dcp->stree + CTLLEAFIND + j;
3400 p = BLKTOL0(blkno, sbi->l2nbperpage); 3400 p = BLKTOL0(blkno, sbi->l2nbperpage);
3401 j0 = FALSE; 3401 j0 = false;
3402 } else { 3402 } else {
3403 /* assign/init L1 page */ 3403 /* assign/init L1 page */
3404 l1mp = get_metapage(ipbmap, p, PSIZE, 0); 3404 l1mp = get_metapage(ipbmap, p, PSIZE, 0);
@@ -3432,7 +3432,7 @@ int dbExtendFS(struct inode *ipbmap, s64 blkno, s64 nblocks)
3432 l0leaf = l0dcp->stree + CTLLEAFIND + i; 3432 l0leaf = l0dcp->stree + CTLLEAFIND + i;
3433 p = BLKTODMAP(blkno, 3433 p = BLKTODMAP(blkno,
3434 sbi->l2nbperpage); 3434 sbi->l2nbperpage);
3435 i0 = FALSE; 3435 i0 = false;
3436 } else { 3436 } else {
3437 /* assign/init L0 page */ 3437 /* assign/init L0 page */
3438 l0mp = get_metapage(ipbmap, p, PSIZE, 0); 3438 l0mp = get_metapage(ipbmap, p, PSIZE, 0);