aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jfs/jfs_txnmgr.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_txnmgr.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_txnmgr.c')
-rw-r--r--fs/jfs/jfs_txnmgr.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/fs/jfs/jfs_txnmgr.c b/fs/jfs/jfs_txnmgr.c
index 3856efc399c1..ebfa6c061d78 100644
--- a/fs/jfs/jfs_txnmgr.c
+++ b/fs/jfs/jfs_txnmgr.c
@@ -2393,7 +2393,7 @@ static void txUpdateMap(struct tblock * tblk)
2393 * unlock mapper/write lock 2393 * unlock mapper/write lock
2394 */ 2394 */
2395 if (tblk->xflag & COMMIT_CREATE) { 2395 if (tblk->xflag & COMMIT_CREATE) {
2396 diUpdatePMap(ipimap, tblk->ino, FALSE, tblk); 2396 diUpdatePMap(ipimap, tblk->ino, false, tblk);
2397 /* update persistent block allocation map 2397 /* update persistent block allocation map
2398 * for the allocation of inode extent; 2398 * for the allocation of inode extent;
2399 */ 2399 */
@@ -2403,7 +2403,7 @@ static void txUpdateMap(struct tblock * tblk)
2403 txAllocPMap(ipimap, (struct maplock *) & pxdlock, tblk); 2403 txAllocPMap(ipimap, (struct maplock *) & pxdlock, tblk);
2404 } else if (tblk->xflag & COMMIT_DELETE) { 2404 } else if (tblk->xflag & COMMIT_DELETE) {
2405 ip = tblk->u.ip; 2405 ip = tblk->u.ip;
2406 diUpdatePMap(ipimap, ip->i_ino, TRUE, tblk); 2406 diUpdatePMap(ipimap, ip->i_ino, true, tblk);
2407 iput(ip); 2407 iput(ip);
2408 } 2408 }
2409} 2409}
@@ -2451,7 +2451,7 @@ static void txAllocPMap(struct inode *ip, struct maplock * maplock,
2451 if (xad->flag & (XAD_NEW | XAD_EXTENDED)) { 2451 if (xad->flag & (XAD_NEW | XAD_EXTENDED)) {
2452 xaddr = addressXAD(xad); 2452 xaddr = addressXAD(xad);
2453 xlen = lengthXAD(xad); 2453 xlen = lengthXAD(xad);
2454 dbUpdatePMap(ipbmap, FALSE, xaddr, 2454 dbUpdatePMap(ipbmap, false, xaddr,
2455 (s64) xlen, tblk); 2455 (s64) xlen, tblk);
2456 xad->flag &= ~(XAD_NEW | XAD_EXTENDED); 2456 xad->flag &= ~(XAD_NEW | XAD_EXTENDED);
2457 jfs_info("allocPMap: xaddr:0x%lx xlen:%d", 2457 jfs_info("allocPMap: xaddr:0x%lx xlen:%d",
@@ -2462,7 +2462,7 @@ static void txAllocPMap(struct inode *ip, struct maplock * maplock,
2462 pxdlock = (struct pxd_lock *) maplock; 2462 pxdlock = (struct pxd_lock *) maplock;
2463 xaddr = addressPXD(&pxdlock->pxd); 2463 xaddr = addressPXD(&pxdlock->pxd);
2464 xlen = lengthPXD(&pxdlock->pxd); 2464 xlen = lengthPXD(&pxdlock->pxd);
2465 dbUpdatePMap(ipbmap, FALSE, xaddr, (s64) xlen, tblk); 2465 dbUpdatePMap(ipbmap, false, xaddr, (s64) xlen, tblk);
2466 jfs_info("allocPMap: xaddr:0x%lx xlen:%d", (ulong) xaddr, xlen); 2466 jfs_info("allocPMap: xaddr:0x%lx xlen:%d", (ulong) xaddr, xlen);
2467 } else { /* (maplock->flag & mlckALLOCPXDLIST) */ 2467 } else { /* (maplock->flag & mlckALLOCPXDLIST) */
2468 2468
@@ -2471,7 +2471,7 @@ static void txAllocPMap(struct inode *ip, struct maplock * maplock,
2471 for (n = 0; n < pxdlistlock->count; n++, pxd++) { 2471 for (n = 0; n < pxdlistlock->count; n++, pxd++) {
2472 xaddr = addressPXD(pxd); 2472 xaddr = addressPXD(pxd);
2473 xlen = lengthPXD(pxd); 2473 xlen = lengthPXD(pxd);
2474 dbUpdatePMap(ipbmap, FALSE, xaddr, (s64) xlen, 2474 dbUpdatePMap(ipbmap, false, xaddr, (s64) xlen,
2475 tblk); 2475 tblk);
2476 jfs_info("allocPMap: xaddr:0x%lx xlen:%d", 2476 jfs_info("allocPMap: xaddr:0x%lx xlen:%d",
2477 (ulong) xaddr, xlen); 2477 (ulong) xaddr, xlen);
@@ -2513,7 +2513,7 @@ void txFreeMap(struct inode *ip,
2513 if (!(xad->flag & XAD_NEW)) { 2513 if (!(xad->flag & XAD_NEW)) {
2514 xaddr = addressXAD(xad); 2514 xaddr = addressXAD(xad);
2515 xlen = lengthXAD(xad); 2515 xlen = lengthXAD(xad);
2516 dbUpdatePMap(ipbmap, TRUE, xaddr, 2516 dbUpdatePMap(ipbmap, true, xaddr,
2517 (s64) xlen, tblk); 2517 (s64) xlen, tblk);
2518 jfs_info("freePMap: xaddr:0x%lx " 2518 jfs_info("freePMap: xaddr:0x%lx "
2519 "xlen:%d", 2519 "xlen:%d",
@@ -2524,7 +2524,7 @@ void txFreeMap(struct inode *ip,
2524 pxdlock = (struct pxd_lock *) maplock; 2524 pxdlock = (struct pxd_lock *) maplock;
2525 xaddr = addressPXD(&pxdlock->pxd); 2525 xaddr = addressPXD(&pxdlock->pxd);
2526 xlen = lengthPXD(&pxdlock->pxd); 2526 xlen = lengthPXD(&pxdlock->pxd);
2527 dbUpdatePMap(ipbmap, TRUE, xaddr, (s64) xlen, 2527 dbUpdatePMap(ipbmap, true, xaddr, (s64) xlen,
2528 tblk); 2528 tblk);
2529 jfs_info("freePMap: xaddr:0x%lx xlen:%d", 2529 jfs_info("freePMap: xaddr:0x%lx xlen:%d",
2530 (ulong) xaddr, xlen); 2530 (ulong) xaddr, xlen);
@@ -2535,7 +2535,7 @@ void txFreeMap(struct inode *ip,
2535 for (n = 0; n < pxdlistlock->count; n++, pxd++) { 2535 for (n = 0; n < pxdlistlock->count; n++, pxd++) {
2536 xaddr = addressPXD(pxd); 2536 xaddr = addressPXD(pxd);
2537 xlen = lengthPXD(pxd); 2537 xlen = lengthPXD(pxd);
2538 dbUpdatePMap(ipbmap, TRUE, xaddr, 2538 dbUpdatePMap(ipbmap, true, xaddr,
2539 (s64) xlen, tblk); 2539 (s64) xlen, tblk);
2540 jfs_info("freePMap: xaddr:0x%lx xlen:%d", 2540 jfs_info("freePMap: xaddr:0x%lx xlen:%d",
2541 (ulong) xaddr, xlen); 2541 (ulong) xaddr, xlen);