X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=fs%2Fgfs2%2Ffile.c;h=15c44cf457ccffd6e55145c8e2e10bd235bc4655;hb=0ae45f63d4ef8d8eeec49c7d8b44a1775fff13e8;hp=6e600abf694a20f327a7a025c670954002745453;hpb=3b421b80be635d696848b72d3c7700a0e5ee3414;p=mirror_ubuntu-zesty-kernel.git diff --git a/fs/gfs2/file.c b/fs/gfs2/file.c index 6e600abf694a..15c44cf457cc 100644 --- a/fs/gfs2/file.c +++ b/fs/gfs2/file.c @@ -655,7 +655,7 @@ static int gfs2_fsync(struct file *file, loff_t start, loff_t end, { struct address_space *mapping = file->f_mapping; struct inode *inode = mapping->host; - int sync_state = inode->i_state & I_DIRTY; + int sync_state = inode->i_state & I_DIRTY_ALL; struct gfs2_inode *ip = GFS2_I(inode); int ret = 0, ret1 = 0; @@ -668,7 +668,7 @@ static int gfs2_fsync(struct file *file, loff_t start, loff_t end, if (!gfs2_is_jdata(ip)) sync_state &= ~I_DIRTY_PAGES; if (datasync) - sync_state &= ~I_DIRTY_SYNC; + sync_state &= ~(I_DIRTY_SYNC | I_DIRTY_TIME); if (sync_state) { ret = sync_inode_metadata(inode, 1);