aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-06-19 09:10:39 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2006-06-19 09:10:39 -0400
commit3a8476dda13bc6690c5c2d5f1d3078048392c188 (patch)
tree1d08bad458d78ce27bec02416491d0f86a454b82 /fs
parentfeaa7bba026c181ce071d5a4884f7f9dd26207a1 (diff)
[GFS2] Remove debugging printks
A few of my printks slipped through last time. Also fix a couple of minor bugs. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/gfs2/glops.c3
-rw-r--r--fs/gfs2/lops.c2
-rw-r--r--fs/gfs2/ops_inode.c5
-rw-r--r--fs/gfs2/ops_super.c2
-rw-r--r--fs/gfs2/rgrp.c11
5 files changed, 3 insertions, 20 deletions
diff --git a/fs/gfs2/glops.c b/fs/gfs2/glops.c
index 013bf5f1552f..a01874c58834 100644
--- a/fs/gfs2/glops.c
+++ b/fs/gfs2/glops.c
@@ -129,7 +129,6 @@ static void inode_go_xmote_bh(struct gfs2_glock *gl)
129 129
130static void inode_go_drop_th(struct gfs2_glock *gl) 130static void inode_go_drop_th(struct gfs2_glock *gl)
131{ 131{
132 printk(KERN_INFO "drop th %p\n", gl->gl_object);
133 gfs2_pte_inval(gl); 132 gfs2_pte_inval(gl);
134 gfs2_glock_drop_th(gl); 133 gfs2_glock_drop_th(gl);
135} 134}
@@ -148,7 +147,6 @@ static void inode_go_sync(struct gfs2_glock *gl, int flags)
148 147
149 if (test_bit(GLF_DIRTY, &gl->gl_flags)) { 148 if (test_bit(GLF_DIRTY, &gl->gl_flags)) {
150 if (meta && data) { 149 if (meta && data) {
151 printk(KERN_INFO "sync all\n");
152 gfs2_page_sync(gl, flags | DIO_START); 150 gfs2_page_sync(gl, flags | DIO_START);
153 gfs2_log_flush(gl->gl_sbd, gl); 151 gfs2_log_flush(gl->gl_sbd, gl);
154 gfs2_meta_sync(gl, flags | DIO_START | DIO_WAIT); 152 gfs2_meta_sync(gl, flags | DIO_START | DIO_WAIT);
@@ -226,7 +224,6 @@ static int inode_go_lock(struct gfs2_holder *gh)
226 return 0; 224 return 0;
227 225
228 if (ip->i_vn != gl->gl_vn) { 226 if (ip->i_vn != gl->gl_vn) {
229 printk(KERN_INFO "refresh inode %p\n", &ip->i_inode);
230 error = gfs2_inode_refresh(ip); 227 error = gfs2_inode_refresh(ip);
231 if (error) 228 if (error)
232 return error; 229 return error;
diff --git a/fs/gfs2/lops.c b/fs/gfs2/lops.c
index a76f1a778920..93563e72ae49 100644
--- a/fs/gfs2/lops.c
+++ b/fs/gfs2/lops.c
@@ -650,7 +650,7 @@ static void databuf_lo_before_commit(struct gfs2_sbd *sdp)
650 } else 650 } else
651 gfs2_log_unlock(sdp); 651 gfs2_log_unlock(sdp);
652 652
653 kfree(bd1); 653 kmem_cache_free(gfs2_bufdata_cachep, bd1);
654 } 654 }
655 655
656 /* We've removed all the ordered write bufs here, so only jdata left */ 656 /* We've removed all the ordered write bufs here, so only jdata left */
diff --git a/fs/gfs2/ops_inode.c b/fs/gfs2/ops_inode.c
index f678f6b62afd..2fe37aeac7b0 100644
--- a/fs/gfs2/ops_inode.c
+++ b/fs/gfs2/ops_inode.c
@@ -56,7 +56,6 @@ static int gfs2_create(struct inode *dir, struct dentry *dentry,
56 struct gfs2_sbd *sdp = GFS2_SB(dir); 56 struct gfs2_sbd *sdp = GFS2_SB(dir);
57 struct gfs2_holder ghs[2]; 57 struct gfs2_holder ghs[2];
58 struct inode *inode; 58 struct inode *inode;
59 int new = 1;
60 59
61 gfs2_holder_init(dip->i_gl, 0, 0, ghs); 60 gfs2_holder_init(dip->i_gl, 0, 0, ghs);
62 61
@@ -69,6 +68,7 @@ static int gfs2_create(struct inode *dir, struct dentry *dentry,
69 gfs2_quota_unlock(dip); 68 gfs2_quota_unlock(dip);
70 gfs2_alloc_put(dip); 69 gfs2_alloc_put(dip);
71 gfs2_glock_dq_uninit_m(2, ghs); 70 gfs2_glock_dq_uninit_m(2, ghs);
71 mark_inode_dirty(inode);
72 break; 72 break;
73 } else if (PTR_ERR(inode) != -EEXIST || 73 } else if (PTR_ERR(inode) != -EEXIST ||
74 (nd->intent.open.flags & O_EXCL)) { 74 (nd->intent.open.flags & O_EXCL)) {
@@ -79,7 +79,6 @@ static int gfs2_create(struct inode *dir, struct dentry *dentry,
79 inode = gfs2_lookupi(dir, &dentry->d_name, 0, nd); 79 inode = gfs2_lookupi(dir, &dentry->d_name, 0, nd);
80 if (inode) { 80 if (inode) {
81 if (!IS_ERR(inode)) { 81 if (!IS_ERR(inode)) {
82 new = 0;
83 gfs2_holder_uninit(ghs); 82 gfs2_holder_uninit(ghs);
84 break; 83 break;
85 } else { 84 } else {
@@ -90,8 +89,6 @@ static int gfs2_create(struct inode *dir, struct dentry *dentry,
90 } 89 }
91 90
92 d_instantiate(dentry, inode); 91 d_instantiate(dentry, inode);
93 if (new)
94 mark_inode_dirty(inode);
95 92
96 return 0; 93 return 0;
97} 94}
diff --git a/fs/gfs2/ops_super.c b/fs/gfs2/ops_super.c
index 317d497f8f88..5f5fc3c42907 100644
--- a/fs/gfs2/ops_super.c
+++ b/fs/gfs2/ops_super.c
@@ -59,7 +59,7 @@ static int gfs2_write_inode(struct inode *inode, int sync)
59 if (current->flags & PF_MEMALLOC) 59 if (current->flags & PF_MEMALLOC)
60 return 0; 60 return 0;
61 if (sync) 61 if (sync)
62 gfs2_log_flush(ip->i_gl->gl_sbd, ip->i_gl); 62 gfs2_log_flush(GFS2_SB(inode), ip->i_gl);
63 } 63 }
64 64
65 return 0; 65 return 0;
diff --git a/fs/gfs2/rgrp.c b/fs/gfs2/rgrp.c
index 75df79eb50ba..651341918833 100644
--- a/fs/gfs2/rgrp.c
+++ b/fs/gfs2/rgrp.c
@@ -447,8 +447,6 @@ static int gfs2_ri_update(struct gfs2_inode *ip)
447 uint64_t junk = ip->i_di.di_size; 447 uint64_t junk = ip->i_di.di_size;
448 int error; 448 int error;
449 449
450 printk(KERN_INFO "gfs2_ri_update inode=%p\n", inode);
451
452 if (do_div(junk, sizeof(struct gfs2_rindex))) { 450 if (do_div(junk, sizeof(struct gfs2_rindex))) {
453 gfs2_consist_inode(ip); 451 gfs2_consist_inode(ip);
454 return -EIO; 452 return -EIO;
@@ -456,12 +454,9 @@ static int gfs2_ri_update(struct gfs2_inode *ip)
456 454
457 clear_rgrpdi(sdp); 455 clear_rgrpdi(sdp);
458 456
459 printk(KERN_INFO "rgrps cleared\n");
460
461 file_ra_state_init(&ra_state, inode->i_mapping); 457 file_ra_state_init(&ra_state, inode->i_mapping);
462 for (sdp->sd_rgrps = 0;; sdp->sd_rgrps++) { 458 for (sdp->sd_rgrps = 0;; sdp->sd_rgrps++) {
463 loff_t pos = sdp->sd_rgrps * sizeof(struct gfs2_rindex); 459 loff_t pos = sdp->sd_rgrps * sizeof(struct gfs2_rindex);
464 printk(KERN_INFO "reading rgrp %d\n", sdp->sd_rgrps);
465 error = gfs2_internal_read(ip, &ra_state, buf, &pos, 460 error = gfs2_internal_read(ip, &ra_state, buf, &pos,
466 sizeof(struct gfs2_rindex)); 461 sizeof(struct gfs2_rindex));
467 if (!error) 462 if (!error)
@@ -485,15 +480,12 @@ static int gfs2_ri_update(struct gfs2_inode *ip)
485 list_add_tail(&rgd->rd_list_mru, &sdp->sd_rindex_mru_list); 480 list_add_tail(&rgd->rd_list_mru, &sdp->sd_rindex_mru_list);
486 481
487 gfs2_rindex_in(&rgd->rd_ri, buf); 482 gfs2_rindex_in(&rgd->rd_ri, buf);
488 printk(KERN_INFO "compute bitstructs\n");
489 error = compute_bitstructs(rgd); 483 error = compute_bitstructs(rgd);
490 if (error) 484 if (error)
491 goto fail; 485 goto fail;
492 486
493 printk(KERN_INFO "gfs2_glock_get\n");
494 error = gfs2_glock_get(sdp, rgd->rd_ri.ri_addr, 487 error = gfs2_glock_get(sdp, rgd->rd_ri.ri_addr,
495 &gfs2_rgrp_glops, CREATE, &rgd->rd_gl); 488 &gfs2_rgrp_glops, CREATE, &rgd->rd_gl);
496 printk(KERN_INFO "gfs2_glock_got one\n");
497 if (error) 489 if (error)
498 goto fail; 490 goto fail;
499 491
@@ -501,14 +493,11 @@ static int gfs2_ri_update(struct gfs2_inode *ip)
501 rgd->rd_rg_vn = rgd->rd_gl->gl_vn - 1; 493 rgd->rd_rg_vn = rgd->rd_gl->gl_vn - 1;
502 } 494 }
503 495
504 printk(KERN_INFO "ok, finished\n");
505 sdp->sd_rindex_vn = ip->i_gl->gl_vn; 496 sdp->sd_rindex_vn = ip->i_gl->gl_vn;
506 return 0; 497 return 0;
507 498
508fail: 499fail:
509 printk(KERN_INFO "fail\n");
510 clear_rgrpdi(sdp); 500 clear_rgrpdi(sdp);
511 printk(KERN_INFO "cleared rgrps\n");
512 return error; 501 return error;
513} 502}
514 503