aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/gfs2/log.c')
-rw-r--r--fs/gfs2/log.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/fs/gfs2/log.c b/fs/gfs2/log.c
index 5b102c1887fd..3ebafa1efad0 100644
--- a/fs/gfs2/log.c
+++ b/fs/gfs2/log.c
@@ -91,6 +91,7 @@ static void gfs2_ail1_start_one(struct gfs2_sbd *sdp, struct gfs2_ail *ai)
91__releases(&sdp->sd_ail_lock) 91__releases(&sdp->sd_ail_lock)
92__acquires(&sdp->sd_ail_lock) 92__acquires(&sdp->sd_ail_lock)
93{ 93{
94 struct gfs2_glock *gl = NULL;
94 struct gfs2_bufdata *bd, *s; 95 struct gfs2_bufdata *bd, *s;
95 struct buffer_head *bh; 96 struct buffer_head *bh;
96 int retry; 97 int retry;
@@ -113,19 +114,13 @@ __acquires(&sdp->sd_ail_lock)
113 114
114 if (!buffer_dirty(bh)) 115 if (!buffer_dirty(bh))
115 continue; 116 continue;
116 117 if (gl == bd->bd_gl)
118 continue;
119 gl = bd->bd_gl;
117 list_move(&bd->bd_ail_st_list, &ai->ai_ail1_list); 120 list_move(&bd->bd_ail_st_list, &ai->ai_ail1_list);
118 121
119 get_bh(bh);
120 spin_unlock(&sdp->sd_ail_lock); 122 spin_unlock(&sdp->sd_ail_lock);
121 lock_buffer(bh); 123 filemap_fdatawrite(gfs2_glock2aspace(gl));
122 if (test_clear_buffer_dirty(bh)) {
123 bh->b_end_io = end_buffer_write_sync;
124 submit_bh(WRITE_SYNC, bh);
125 } else {
126 unlock_buffer(bh);
127 brelse(bh);
128 }
129 spin_lock(&sdp->sd_ail_lock); 124 spin_lock(&sdp->sd_ail_lock);
130 125
131 retry = 1; 126 retry = 1;