| commit | 196ddccd91b20f74143c068bd8e041ed53d18f63 | [log] [tgz] |
|---|---|---|
| author | Zhang Zhen <zhenzhang.zhang@huawei.com> | Tue Apr 15 14:19:38 2014 +0800 |
| committer | flintman <flintman@flintmancomputers.com> | Sat Jan 24 11:36:38 2015 -0500 |
| tree | 72017fad0cf83c6108da787b2a45c7ce45d94607 | |
| parent | 2e4e98656c7109feb5d214d02f3565d7e0234c84 [diff] |
f2fs: atomically set inode->i_flags in f2fs_set_inode_flags() Use set_mask_bits() to atomically set i_flags instead of clearing out the S_IMMUTABLE, S_APPEND, etc. flags and then setting them from the FS_IMMUTABLE_FL, FS_APPEND_FL, etc. flags, since this opens up a race where an immutable file has the immutable flag cleared for a brief window of time. Signed-off-by: Zhang Zhen <zhenzhang.zhang@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>