f2fs: spread f2fs_set_inode_flags()
authorChao Yu <yuchao0@huawei.com>
Sun, 7 Oct 2018 11:06:15 +0000 (19:06 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 26 Oct 2018 18:27:01 +0000 (11:27 -0700)
commitea7f111f5aae5e88928d975d210b4c3fa5a52dad
tree91fc9a896a3b99d91d11e94fee4fe686a7ec10bc
parent096177aa6d3f8677921055ee2e5eedfe594ce801
f2fs: spread f2fs_set_inode_flags()

This patch changes codes as below:
- use f2fs_set_inode_flags() to update i_flags atomically to avoid
potential race.
- synchronize F2FS_I(inode)->i_flags to inode->i_flags in
f2fs_new_inode().
- use f2fs_set_inode_flags() to simply codes in f2fs_quota_{on,off}.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/namei.c
fs/f2fs/super.c