diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-06-19 09:10:39 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-06-19 09:10:39 -0400 |
commit | 3a8476dda13bc6690c5c2d5f1d3078048392c188 (patch) | |
tree | 1d08bad458d78ce27bec02416491d0f86a454b82 /fs/gfs2/rgrp.c | |
parent | feaa7bba026c181ce071d5a4884f7f9dd26207a1 (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/gfs2/rgrp.c')
-rw-r--r-- | fs/gfs2/rgrp.c | 11 |
1 files changed, 0 insertions, 11 deletions
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 | ||
508 | fail: | 499 | fail: |
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 | ||