diff options
Diffstat (limited to 'fs/gfs2/glops.c')
-rw-r--r-- | fs/gfs2/glops.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/fs/gfs2/glops.c b/fs/gfs2/glops.c index c66e99c97571..5f2e5224c51c 100644 --- a/fs/gfs2/glops.c +++ b/fs/gfs2/glops.c | |||
@@ -54,7 +54,6 @@ static void __gfs2_ail_flush(struct gfs2_glock *gl, bool fsync) | |||
54 | struct gfs2_bufdata *bd, *tmp; | 54 | struct gfs2_bufdata *bd, *tmp; |
55 | struct buffer_head *bh; | 55 | struct buffer_head *bh; |
56 | const unsigned long b_state = (1UL << BH_Dirty)|(1UL << BH_Pinned)|(1UL << BH_Lock); | 56 | const unsigned long b_state = (1UL << BH_Dirty)|(1UL << BH_Pinned)|(1UL << BH_Lock); |
57 | sector_t blocknr; | ||
58 | 57 | ||
59 | gfs2_log_lock(sdp); | 58 | gfs2_log_lock(sdp); |
60 | spin_lock(&sdp->sd_ail_lock); | 59 | spin_lock(&sdp->sd_ail_lock); |
@@ -65,13 +64,6 @@ static void __gfs2_ail_flush(struct gfs2_glock *gl, bool fsync) | |||
65 | continue; | 64 | continue; |
66 | gfs2_ail_error(gl, bh); | 65 | gfs2_ail_error(gl, bh); |
67 | } | 66 | } |
68 | blocknr = bh->b_blocknr; | ||
69 | bh->b_private = NULL; | ||
70 | gfs2_remove_from_ail(bd); /* drops ref on bh */ | ||
71 | |||
72 | bd->bd_bh = NULL; | ||
73 | bd->bd_blkno = blocknr; | ||
74 | |||
75 | gfs2_trans_add_revoke(sdp, bd); | 67 | gfs2_trans_add_revoke(sdp, bd); |
76 | } | 68 | } |
77 | GLOCK_BUG_ON(gl, !fsync && atomic_read(&gl->gl_ail_count)); | 69 | GLOCK_BUG_ON(gl, !fsync && atomic_read(&gl->gl_ail_count)); |