GFS2: Fix bug trap and journaled data fsync
[deliverable/linux.git] / fs / gfs2 / file.c
index 92c3db424b40a44a04fc0d4f8e28ef24cd07464e..9d12286d81115e9028eaea182361623edec17412 100644 (file)
@@ -590,6 +590,8 @@ static int gfs2_fsync(struct file *file, loff_t start, loff_t end,
                        mutex_unlock(&inode->i_mutex);
                        return ret;
                }
+               if (gfs2_is_jdata(ip))
+                       filemap_write_and_wait(mapping);
                gfs2_ail_flush(ip->i_gl);
                mutex_unlock(&inode->i_mutex);
        }
This page took 0.027316 seconds and 5 git commands to generate.