aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/jfs/inode.c4
-rw-r--r--fs/jfs/jfs_discard.c6
-rw-r--r--fs/jfs/jfs_dtree.c10
-rw-r--r--fs/jfs/jfs_imap.c3
-rw-r--r--fs/jfs/jfs_inode.c2
-rw-r--r--fs/jfs/jfs_logmgr.c14
-rw-r--r--fs/jfs/jfs_txnmgr.c21
-rw-r--r--fs/jfs/namei.c4
-rw-r--r--fs/jfs/super.c4
9 files changed, 29 insertions, 39 deletions
diff --git a/fs/jfs/inode.c b/fs/jfs/inode.c
index 9d9bae63ae2a..da1d02116a19 100644
--- a/fs/jfs/inode.c
+++ b/fs/jfs/inode.c
@@ -102,8 +102,8 @@ int jfs_commit_inode(struct inode *inode, int wait)
102 * partitions and may think inode is dirty 102 * partitions and may think inode is dirty
103 */ 103 */
104 if (!special_file(inode->i_mode) && noisy) { 104 if (!special_file(inode->i_mode) && noisy) {
105 jfs_err("jfs_commit_inode(0x%p) called on " 105 jfs_err("jfs_commit_inode(0x%p) called on read-only volume",
106 "read-only volume", inode); 106 inode);
107 jfs_err("Is remount racy?"); 107 jfs_err("Is remount racy?");
108 noisy--; 108 noisy--;
109 } 109 }
diff --git a/fs/jfs/jfs_discard.c b/fs/jfs/jfs_discard.c
index dfcd50304559..f76ff0a46444 100644
--- a/fs/jfs/jfs_discard.c
+++ b/fs/jfs/jfs_discard.c
@@ -49,14 +49,12 @@ void jfs_issue_discard(struct inode *ip, u64 blkno, u64 nblocks)
49 49
50 r = sb_issue_discard(sb, blkno, nblocks, GFP_NOFS, 0); 50 r = sb_issue_discard(sb, blkno, nblocks, GFP_NOFS, 0);
51 if (unlikely(r != 0)) { 51 if (unlikely(r != 0)) {
52 jfs_err("JFS: sb_issue_discard" \ 52 jfs_err("JFS: sb_issue_discard(%p, %llu, %llu, GFP_NOFS, 0) = %d => failed!",
53 "(%p, %llu, %llu, GFP_NOFS, 0) = %d => failed!\n",
54 sb, (unsigned long long)blkno, 53 sb, (unsigned long long)blkno,
55 (unsigned long long)nblocks, r); 54 (unsigned long long)nblocks, r);
56 } 55 }
57 56
58 jfs_info("JFS: sb_issue_discard" \ 57 jfs_info("JFS: sb_issue_discard(%p, %llu, %llu, GFP_NOFS, 0) = %d",
59 "(%p, %llu, %llu, GFP_NOFS, 0) = %d\n",
60 sb, (unsigned long long)blkno, 58 sb, (unsigned long long)blkno,
61 (unsigned long long)nblocks, r); 59 (unsigned long long)nblocks, r);
62 60
diff --git a/fs/jfs/jfs_dtree.c b/fs/jfs/jfs_dtree.c
index d88576e23fe4..de2bcb36e079 100644
--- a/fs/jfs/jfs_dtree.c
+++ b/fs/jfs/jfs_dtree.c
@@ -3072,8 +3072,7 @@ int jfs_readdir(struct file *file, struct dir_context *ctx)
3072 } 3072 }
3073 if (dirtab_slot.flag == DIR_INDEX_FREE) { 3073 if (dirtab_slot.flag == DIR_INDEX_FREE) {
3074 if (loop_count++ > JFS_IP(ip)->next_index) { 3074 if (loop_count++ > JFS_IP(ip)->next_index) {
3075 jfs_err("jfs_readdir detected " 3075 jfs_err("jfs_readdir detected infinite loop!");
3076 "infinite loop!");
3077 ctx->pos = DIREND; 3076 ctx->pos = DIREND;
3078 return 0; 3077 return 0;
3079 } 3078 }
@@ -3151,8 +3150,7 @@ int jfs_readdir(struct file *file, struct dir_context *ctx)
3151 if (!dir_emit(ctx, "..", 2, PARENT(ip), DT_DIR)) 3150 if (!dir_emit(ctx, "..", 2, PARENT(ip), DT_DIR))
3152 return 0; 3151 return 0;
3153 } else { 3152 } else {
3154 jfs_err("jfs_readdir called with " 3153 jfs_err("jfs_readdir called with invalid offset!");
3155 "invalid offset!");
3156 } 3154 }
3157 dtoffset->pn = 1; 3155 dtoffset->pn = 1;
3158 dtoffset->index = 0; 3156 dtoffset->index = 0;
@@ -3165,8 +3163,8 @@ int jfs_readdir(struct file *file, struct dir_context *ctx)
3165 } 3163 }
3166 3164
3167 if ((rc = dtReadNext(ip, &ctx->pos, &btstack))) { 3165 if ((rc = dtReadNext(ip, &ctx->pos, &btstack))) {
3168 jfs_err("jfs_readdir: unexpected rc = %d " 3166 jfs_err("jfs_readdir: unexpected rc = %d from dtReadNext",
3169 "from dtReadNext", rc); 3167 rc);
3170 ctx->pos = DIREND; 3168 ctx->pos = DIREND;
3171 return 0; 3169 return 0;
3172 } 3170 }
diff --git a/fs/jfs/jfs_imap.c b/fs/jfs/jfs_imap.c
index f321986e73d2..6aca224a5d68 100644
--- a/fs/jfs/jfs_imap.c
+++ b/fs/jfs/jfs_imap.c
@@ -534,8 +534,7 @@ void diWriteSpecial(struct inode *ip, int secondary)
534 /* read the page of fixed disk inode (AIT) in raw mode */ 534 /* read the page of fixed disk inode (AIT) in raw mode */
535 mp = read_metapage(ip, address << sbi->l2nbperpage, PSIZE, 1); 535 mp = read_metapage(ip, address << sbi->l2nbperpage, PSIZE, 1);
536 if (mp == NULL) { 536 if (mp == NULL) {
537 jfs_err("diWriteSpecial: failed to read aggregate inode " 537 jfs_err("diWriteSpecial: failed to read aggregate inode extent!");
538 "extent!");
539 return; 538 return;
540 } 539 }
541 540
diff --git a/fs/jfs/jfs_inode.c b/fs/jfs/jfs_inode.c
index cf7936fe2e68..5e33cb9a190d 100644
--- a/fs/jfs/jfs_inode.c
+++ b/fs/jfs/jfs_inode.c
@@ -151,7 +151,7 @@ struct inode *ialloc(struct inode *parent, umode_t mode)
151 jfs_inode->xtlid = 0; 151 jfs_inode->xtlid = 0;
152 jfs_set_inode_flags(inode); 152 jfs_set_inode_flags(inode);
153 153
154 jfs_info("ialloc returns inode = 0x%p\n", inode); 154 jfs_info("ialloc returns inode = 0x%p", inode);
155 155
156 return inode; 156 return inode;
157 157
diff --git a/fs/jfs/jfs_logmgr.c b/fs/jfs/jfs_logmgr.c
index a270cb7ff4e0..63759d723920 100644
--- a/fs/jfs/jfs_logmgr.c
+++ b/fs/jfs/jfs_logmgr.c
@@ -1094,7 +1094,7 @@ int lmLogOpen(struct super_block *sb)
1094 if (log->bdev->bd_dev == sbi->logdev) { 1094 if (log->bdev->bd_dev == sbi->logdev) {
1095 if (memcmp(log->uuid, sbi->loguuid, 1095 if (memcmp(log->uuid, sbi->loguuid,
1096 sizeof(log->uuid))) { 1096 sizeof(log->uuid))) {
1097 jfs_warn("wrong uuid on JFS journal\n"); 1097 jfs_warn("wrong uuid on JFS journal");
1098 mutex_unlock(&jfs_log_mutex); 1098 mutex_unlock(&jfs_log_mutex);
1099 return -EINVAL; 1099 return -EINVAL;
1100 } 1100 }
@@ -1333,9 +1333,8 @@ int lmLogInit(struct jfs_log * log)
1333 rc = -EINVAL; 1333 rc = -EINVAL;
1334 goto errout20; 1334 goto errout20;
1335 } 1335 }
1336 jfs_info("lmLogInit: inline log:0x%p base:0x%Lx " 1336 jfs_info("lmLogInit: inline log:0x%p base:0x%Lx size:0x%x",
1337 "size:0x%x", log, 1337 log, (unsigned long long)log->base, log->size);
1338 (unsigned long long) log->base, log->size);
1339 } else { 1338 } else {
1340 if (memcmp(logsuper->uuid, log->uuid, 16)) { 1339 if (memcmp(logsuper->uuid, log->uuid, 16)) {
1341 jfs_warn("wrong uuid on JFS log device"); 1340 jfs_warn("wrong uuid on JFS log device");
@@ -1343,9 +1342,8 @@ int lmLogInit(struct jfs_log * log)
1343 } 1342 }
1344 log->size = le32_to_cpu(logsuper->size); 1343 log->size = le32_to_cpu(logsuper->size);
1345 log->l2bsize = le32_to_cpu(logsuper->l2bsize); 1344 log->l2bsize = le32_to_cpu(logsuper->l2bsize);
1346 jfs_info("lmLogInit: external log:0x%p base:0x%Lx " 1345 jfs_info("lmLogInit: external log:0x%p base:0x%Lx size:0x%x",
1347 "size:0x%x", log, 1346 log, (unsigned long long)log->base, log->size);
1348 (unsigned long long) log->base, log->size);
1349 } 1347 }
1350 1348
1351 log->page = le32_to_cpu(logsuper->end) / LOGPSIZE; 1349 log->page = le32_to_cpu(logsuper->end) / LOGPSIZE;
@@ -2136,7 +2134,7 @@ static void lbmStartIO(struct lbuf * bp)
2136 struct bio *bio; 2134 struct bio *bio;
2137 struct jfs_log *log = bp->l_log; 2135 struct jfs_log *log = bp->l_log;
2138 2136
2139 jfs_info("lbmStartIO\n"); 2137 jfs_info("lbmStartIO");
2140 2138
2141 bio = bio_alloc(GFP_NOFS, 1); 2139 bio = bio_alloc(GFP_NOFS, 1);
2142 bio->bi_iter.bi_sector = bp->l_blkno << (log->l2bsize - 9); 2140 bio->bi_iter.bi_sector = bp->l_blkno << (log->l2bsize - 9);
diff --git a/fs/jfs/jfs_txnmgr.c b/fs/jfs/jfs_txnmgr.c
index d595856453b2..eddf2b6eda85 100644
--- a/fs/jfs/jfs_txnmgr.c
+++ b/fs/jfs/jfs_txnmgr.c
@@ -1764,7 +1764,7 @@ static void xtLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd,
1764 if (lwm == next) 1764 if (lwm == next)
1765 goto out; 1765 goto out;
1766 if (lwm > next) { 1766 if (lwm > next) {
1767 jfs_err("xtLog: lwm > next\n"); 1767 jfs_err("xtLog: lwm > next");
1768 goto out; 1768 goto out;
1769 } 1769 }
1770 tlck->flag |= tlckUPDATEMAP; 1770 tlck->flag |= tlckUPDATEMAP;
@@ -1798,8 +1798,8 @@ static void xtLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd,
1798 xadlock->xdlist = &p->xad[lwm]; 1798 xadlock->xdlist = &p->xad[lwm];
1799 tblk->xflag &= ~COMMIT_LAZY; 1799 tblk->xflag &= ~COMMIT_LAZY;
1800 } 1800 }
1801 jfs_info("xtLog: alloc ip:0x%p mp:0x%p tlck:0x%p lwm:%d " 1801 jfs_info("xtLog: alloc ip:0x%p mp:0x%p tlck:0x%p lwm:%d count:%d",
1802 "count:%d", tlck->ip, mp, tlck, lwm, xadlock->count); 1802 tlck->ip, mp, tlck, lwm, xadlock->count);
1803 1803
1804 maplock->index = 1; 1804 maplock->index = 1;
1805 1805
@@ -2025,8 +2025,7 @@ static void xtLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd,
2025 xadlock->count = next - lwm; 2025 xadlock->count = next - lwm;
2026 xadlock->xdlist = &p->xad[lwm]; 2026 xadlock->xdlist = &p->xad[lwm];
2027 2027
2028 jfs_info("xtLog: alloc ip:0x%p mp:0x%p count:%d " 2028 jfs_info("xtLog: alloc ip:0x%p mp:0x%p count:%d lwm:%d next:%d",
2029 "lwm:%d next:%d",
2030 tlck->ip, mp, xadlock->count, lwm, next); 2029 tlck->ip, mp, xadlock->count, lwm, next);
2031 maplock->index++; 2030 maplock->index++;
2032 xadlock++; 2031 xadlock++;
@@ -2047,8 +2046,8 @@ static void xtLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd,
2047 pxdlock->count = 1; 2046 pxdlock->count = 1;
2048 pxdlock->pxd = pxd; 2047 pxdlock->pxd = pxd;
2049 2048
2050 jfs_info("xtLog: truncate ip:0x%p mp:0x%p count:%d " 2049 jfs_info("xtLog: truncate ip:0x%p mp:0x%p count:%d hwm:%d",
2051 "hwm:%d", ip, mp, pxdlock->count, hwm); 2050 ip, mp, pxdlock->count, hwm);
2052 maplock->index++; 2051 maplock->index++;
2053 xadlock++; 2052 xadlock++;
2054 } 2053 }
@@ -2066,8 +2065,7 @@ static void xtLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd,
2066 xadlock->count = hwm - next + 1; 2065 xadlock->count = hwm - next + 1;
2067 xadlock->xdlist = &p->xad[next]; 2066 xadlock->xdlist = &p->xad[next];
2068 2067
2069 jfs_info("xtLog: free ip:0x%p mp:0x%p count:%d " 2068 jfs_info("xtLog: free ip:0x%p mp:0x%p count:%d next:%d hwm:%d",
2070 "next:%d hwm:%d",
2071 tlck->ip, mp, xadlock->count, next, hwm); 2069 tlck->ip, mp, xadlock->count, next, hwm);
2072 maplock->index++; 2070 maplock->index++;
2073 } 2071 }
@@ -2523,8 +2521,7 @@ void txFreeMap(struct inode *ip,
2523 xlen = lengthXAD(xad); 2521 xlen = lengthXAD(xad);
2524 dbUpdatePMap(ipbmap, true, xaddr, 2522 dbUpdatePMap(ipbmap, true, xaddr,
2525 (s64) xlen, tblk); 2523 (s64) xlen, tblk);
2526 jfs_info("freePMap: xaddr:0x%lx " 2524 jfs_info("freePMap: xaddr:0x%lx xlen:%d",
2527 "xlen:%d",
2528 (ulong) xaddr, xlen); 2525 (ulong) xaddr, xlen);
2529 } 2526 }
2530 } 2527 }
@@ -2814,7 +2811,7 @@ int jfs_lazycommit(void *arg)
2814 if (!list_empty(&TxAnchor.unlock_queue)) 2811 if (!list_empty(&TxAnchor.unlock_queue))
2815 jfs_err("jfs_lazycommit being killed w/pending transactions!"); 2812 jfs_err("jfs_lazycommit being killed w/pending transactions!");
2816 else 2813 else
2817 jfs_info("jfs_lazycommit being killed\n"); 2814 jfs_info("jfs_lazycommit being killed");
2818 return 0; 2815 return 0;
2819} 2816}
2820 2817
diff --git a/fs/jfs/namei.c b/fs/jfs/namei.c
index 8a40941ac9a6..ff671edcf4f0 100644
--- a/fs/jfs/namei.c
+++ b/fs/jfs/namei.c
@@ -1225,8 +1225,8 @@ static int jfs_rename(struct inode *old_dir, struct dentry *old_dentry,
1225 rc = dtSearch(new_dir, &new_dname, &ino, &btstack, 1225 rc = dtSearch(new_dir, &new_dname, &ino, &btstack,
1226 JFS_CREATE); 1226 JFS_CREATE);
1227 if (rc) { 1227 if (rc) {
1228 jfs_err("jfs_rename didn't expect dtSearch to fail " 1228 jfs_err("jfs_rename didn't expect dtSearch to fail w/rc = %d",
1229 "w/rc = %d", rc); 1229 rc);
1230 goto out_tx; 1230 goto out_tx;
1231 } 1231 }
1232 1232
diff --git a/fs/jfs/super.c b/fs/jfs/super.c
index 78d599198bf5..cec8814a3b8b 100644
--- a/fs/jfs/super.c
+++ b/fs/jfs/super.c
@@ -84,7 +84,7 @@ static void jfs_handle_error(struct super_block *sb)
84 panic("JFS (device %s): panic forced after error\n", 84 panic("JFS (device %s): panic forced after error\n",
85 sb->s_id); 85 sb->s_id);
86 else if (sbi->flag & JFS_ERR_REMOUNT_RO) { 86 else if (sbi->flag & JFS_ERR_REMOUNT_RO) {
87 jfs_err("ERROR: (device %s): remounting filesystem as read-only\n", 87 jfs_err("ERROR: (device %s): remounting filesystem as read-only",
88 sb->s_id); 88 sb->s_id);
89 sb->s_flags |= MS_RDONLY; 89 sb->s_flags |= MS_RDONLY;
90 } 90 }
@@ -641,7 +641,7 @@ static int jfs_freeze(struct super_block *sb)
641 } 641 }
642 rc = updateSuper(sb, FM_CLEAN); 642 rc = updateSuper(sb, FM_CLEAN);
643 if (rc) { 643 if (rc) {
644 jfs_err("jfs_freeze: updateSuper failed\n"); 644 jfs_err("jfs_freeze: updateSuper failed");
645 /* 645 /*
646 * Don't fail here. Everything succeeded except 646 * Don't fail here. Everything succeeded except
647 * marking the superblock clean, so there's really 647 * marking the superblock clean, so there's really