aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2015-02-17 19:12:34 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2015-02-17 19:12:34 -0500
commit038911597e17017cee55fe93d521164a27056866 (patch)
tree8f279a91de8237ce370a14d745940cccfd78ea07 /fs/gfs2
parent66dc830d14a222c9214a8557e9feb1e4a67a3857 (diff)
parenta26f49926da938f47561f386be56a83dd37a496d (diff)
Merge branch 'lazytime' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull lazytime mount option support from Al Viro: "Lazytime stuff from tytso" * 'lazytime' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: ext4: add optimization for the lazytime mount option vfs: add find_inode_nowait() function vfs: add support for a lazytime mount option
Diffstat (limited to 'fs/gfs2')
-rw-r--r--fs/gfs2/file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/gfs2/file.c b/fs/gfs2/file.c
index ec9c2d33477a..3e32bb8e2d7e 100644
--- a/fs/gfs2/file.c
+++ b/fs/gfs2/file.c
@@ -654,7 +654,7 @@ static int gfs2_fsync(struct file *file, loff_t start, loff_t end,
654{ 654{
655 struct address_space *mapping = file->f_mapping; 655 struct address_space *mapping = file->f_mapping;
656 struct inode *inode = mapping->host; 656 struct inode *inode = mapping->host;
657 int sync_state = inode->i_state & I_DIRTY; 657 int sync_state = inode->i_state & I_DIRTY_ALL;
658 struct gfs2_inode *ip = GFS2_I(inode); 658 struct gfs2_inode *ip = GFS2_I(inode);
659 int ret = 0, ret1 = 0; 659 int ret = 0, ret1 = 0;
660 660
@@ -667,7 +667,7 @@ static int gfs2_fsync(struct file *file, loff_t start, loff_t end,
667 if (!gfs2_is_jdata(ip)) 667 if (!gfs2_is_jdata(ip))
668 sync_state &= ~I_DIRTY_PAGES; 668 sync_state &= ~I_DIRTY_PAGES;
669 if (datasync) 669 if (datasync)
670 sync_state &= ~I_DIRTY_SYNC; 670 sync_state &= ~(I_DIRTY_SYNC | I_DIRTY_TIME);
671 671
672 if (sync_state) { 672 if (sync_state) {
673 ret = sync_inode_metadata(inode, 1); 673 ret = sync_inode_metadata(inode, 1);