aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/glops.c
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2007-08-27 04:45:26 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2007-10-10 03:55:55 -0400
commit1e1a3d03e927d39282208aed676e49d25129feea (patch)
tree731cca9b4df1a6164c809f002290a3d7fd6af1f4 /fs/gfs2/glops.c
parent8497a46e178addb27ad1c981befaa17ca788b5c3 (diff)
[GFS2] Introduce gfs2_remove_from_ail
This collects together the operations required to remove a gfs2_bufdata from the ail lists. Its only called from two places to start with, but expect to see more of this function in future. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/glops.c')
-rw-r--r--fs/gfs2/glops.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/gfs2/glops.c b/fs/gfs2/glops.c
index 7ef6b23bb38..b17346a355b 100644
--- a/fs/gfs2/glops.c
+++ b/fs/gfs2/glops.c
@@ -60,11 +60,7 @@ static void gfs2_ail_empty_gl(struct gfs2_glock *gl)
60 blkno = bh->b_blocknr; 60 blkno = bh->b_blocknr;
61 gfs2_assert_withdraw(sdp, !buffer_busy(bh)); 61 gfs2_assert_withdraw(sdp, !buffer_busy(bh));
62 62
63 bd->bd_ail = NULL; 63 gfs2_remove_from_ail(NULL, bd);
64 list_del(&bd->bd_ail_st_list);
65 list_del(&bd->bd_ail_gl_list);
66 atomic_dec(&gl->gl_ail_count);
67 brelse(bh);
68 gfs2_log_unlock(sdp); 64 gfs2_log_unlock(sdp);
69 65
70 gfs2_trans_add_revoke(sdp, blkno); 66 gfs2_trans_add_revoke(sdp, blkno);