f2fs: fix to dirty inode synchronously
authorChao Yu <yuchao0@huawei.com>
Tue, 18 Dec 2018 11:20:17 +0000 (19:20 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 14:37:48 +0000 (15:37 +0100)
commit3ccb647772d94c8a5f006f2f1df877e93e7b06d7
treee6fef1d73852b39a38aa3351f323e51eba35220b
parent145422360a329f12f8c19ddad5edb178625966ee
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>
fs/f2fs/file.c