diff options
author | Chao Yu <yuchao0@huawei.com> | 2018-12-18 14:20:17 +0300 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-12-27 02:16:55 +0300 |
commit | b32e019049e959ee10ec359893c9dd5d057dad55 (patch) | |
tree | 5027b400abee741deac3ff6bf0a2e3114def6509 /fs/f2fs | |
parent | c0362117c3b87322366865e8db000449e5ec2caf (diff) | |
download | linux-b32e019049e959ee10ec359893c9dd5d057dad55.tar.xz |
f2fs: fix to dirty inode synchronously
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>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index ca9bdbb8651b..7bf28be811ab 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -1685,7 +1685,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; } |