aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/gfs2/file.c')
-rw-r--r--fs/gfs2/file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/gfs2/file.c b/fs/gfs2/file.c
index 92c3db424b40..9d12286d8111 100644
--- a/fs/gfs2/file.c
+++ b/fs/gfs2/file.c
@@ -590,6 +590,8 @@ static int gfs2_fsync(struct file *file, loff_t start, loff_t end,
590 mutex_unlock(&inode->i_mutex); 590 mutex_unlock(&inode->i_mutex);
591 return ret; 591 return ret;
592 } 592 }
593 if (gfs2_is_jdata(ip))
594 filemap_write_and_wait(mapping);
593 gfs2_ail_flush(ip->i_gl); 595 gfs2_ail_flush(ip->i_gl);
594 mutex_unlock(&inode->i_mutex); 596 mutex_unlock(&inode->i_mutex);
595 } 597 }