diff options
author | Zhang Zhen <zhenzhang.zhang@huawei.com> | 2014-04-15 02:19:38 -0400 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2014-05-06 21:21:54 -0400 |
commit | 8abfb36ab396377ea712cd640c525fd5535d1dc9 (patch) | |
tree | 89e5bd1f683cc4428b95a66aa01303417249c8f8 /fs/pnode.h | |
parent | b156d542415d88c265a0a579448a93e66aa18e33 (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>
Diffstat (limited to 'fs/pnode.h')
0 files changed, 0 insertions, 0 deletions