aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jfs/jfs_txnmgr.c
diff options
context:
space:
mode:
authorDave Kleikamp <shaggy@linux.vnet.ibm.com>2007-06-06 17:30:17 -0400
committerDave Kleikamp <shaggy@linux.vnet.ibm.com>2007-06-06 17:30:17 -0400
commit209e101bf408a50acc426e32c8252daefacde5b0 (patch)
tree9627c9273e35f142e58059aa85b77c0367c45315 /fs/jfs/jfs_txnmgr.c
parentf720e3ba558680cc7dd3995d005bdc8ee2ef46af (diff)
JFS: use print_hex_dump() rather than private dump_mem() function
Signed-off-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com>
Diffstat (limited to 'fs/jfs/jfs_txnmgr.c')
-rw-r--r--fs/jfs/jfs_txnmgr.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/fs/jfs/jfs_txnmgr.c b/fs/jfs/jfs_txnmgr.c
index f2dc4b986392..d6f23f90ad36 100644
--- a/fs/jfs/jfs_txnmgr.c
+++ b/fs/jfs/jfs_txnmgr.c
@@ -829,12 +829,17 @@ struct tlock *txLock(tid_t tid, struct inode *ip, struct metapage * mp,
829 /* Only locks on ipimap or ipaimap should reach here */ 829 /* Only locks on ipimap or ipaimap should reach here */
830 /* assert(jfs_ip->fileset == AGGREGATE_I); */ 830 /* assert(jfs_ip->fileset == AGGREGATE_I); */
831 if (jfs_ip->fileset != AGGREGATE_I) { 831 if (jfs_ip->fileset != AGGREGATE_I) {
832 jfs_err("txLock: trying to lock locked page!"); 832 printk(KERN_ERR "txLock: trying to lock locked page!");
833 dump_mem("ip", ip, sizeof(struct inode)); 833 printk(KERN_ERR "ip:\n");
834 dump_mem("mp", mp, sizeof(struct metapage)); 834 print_hex_dump(KERN_ERR, DUMP_PREFIX_ADDRESS, ip, sizeof(*ip));
835 dump_mem("Locker's tblk", tid_to_tblock(tid), 835 printk(KERN_ERR "mp:\n");
836 sizeof(struct tblock)); 836 print_hex_dump(KERN_ERR, DUMP_PREFIX_ADDRESS, mp, sizeof(*mp));
837 dump_mem("Tlock", tlck, sizeof(struct tlock)); 837 printk(KERN_ERR "Locker's tblk:\n");
838 print_hex_dump(KERN_ERR, DUMP_PREFIX_ADDRESS,
839 tid_to_tblock(tid), sizeof(struct tblock));
840 printk(KERN_ERR "Tlock:\n");
841 print_hex_dump(KERN_ERR, DUMP_PREFIX_ADDRESS, tlck,
842 sizeof(*tlck));
838 BUG(); 843 BUG();
839 } 844 }
840 INCREMENT(stattx.waitlock); /* statistics */ 845 INCREMENT(stattx.waitlock); /* statistics */