diff options
| author | Ryusuke Konishi <[email protected]> | 2015-04-16 12:46:50 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2015-04-17 09:04:04 -0400 |
| commit | faea2c5311e162f5ceda8e0a261a9f9ece6f921d (patch) | |
| tree | 20d2aac1037c83c46e62e6d6bca4393a019780f6 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 0ce187c4f32d77eae077f249aa10656b5eef5f28 (diff) | |
nilfs2: use inode_set_flags() in nilfs_set_inode_flags()
Use inode_set_flags() 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 flags to avoid a race where an immutable
file has the immutable flag cleared for a brief window of time.
This is a similar fix to commit 5f16f3225b06 ("ext4: atomically set
inode->i_flags in ext4_set_inode_flags()").
Signed-off-by: Ryusuke Konishi <[email protected]>
Cc: "Theodore Ts'o" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions