summaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2018-12-18 19:20:17 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-12-05 09:20:51 +0100
commit18bd3588a5707c1a8b1940ed5477194b3b1024d9 (patch)
tree04f21a5942bb95bb0dd0ac996ba54793b290d2c2 /fs/f2fs
parent75491eae5fff246e21c5fcff65a989d6806c4d03 (diff)
downloadlinux-stable-18bd3588a5707c1a8b1940ed5477194b3b1024d9.tar.gz
linux-stable-18bd3588a5707c1a8b1940ed5477194b3b1024d9.tar.bz2
linux-stable-18bd3588a5707c1a8b1940ed5477194b3b1024d9.zip
f2fs: fix to dirty inode synchronously
[ Upstream commit b32e019049e959ee10ec359893c9dd5d057dad55 ] If user change inode's i_flags via ioctl, let's add it into global dirty list, so that checkpoint can guarantee its persistence before fsync, it can make checkpoint keeping strong consistency. Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c
index c7ea12299769..187bf7e260c9 100644
--- a/fs/f2fs/file.c
+++ b/fs/f2fs/file.c
@@ -1667,7 +1667,7 @@ static int __f2fs_ioc_setflags(struct inode *inode, unsigned int flags)
inode->i_ctime = current_time(inode);
f2fs_set_inode_flags(inode);
- f2fs_mark_inode_dirty_sync(inode, false);
+ f2fs_mark_inode_dirty_sync(inode, true);
return 0;
}