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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/log.c b/fs/gfs2/log.c
index 70b404d2774b..1e1fe8def375 100644
--- a/fs/gfs2/log.c
+++ b/fs/gfs2/log.c
@@ -650,7 +650,7 @@ static void gfs2_ordered_write(struct gfs2_sbd *sdp)
650 get_bh(bh); 650 get_bh(bh);
651 gfs2_log_unlock(sdp); 651 gfs2_log_unlock(sdp);
652 lock_buffer(bh); 652 lock_buffer(bh);
653 if (test_clear_buffer_dirty(bh)) { 653 if (buffer_mapped(bh) && test_clear_buffer_dirty(bh)) {
654 bh->b_end_io = end_buffer_write_sync; 654 bh->b_end_io = end_buffer_write_sync;
655 submit_bh(WRITE, bh); 655 submit_bh(WRITE, bh);
656 } else { 656 } else {