summaryrefslogtreecommitdiffstats
path: root/fs/hfs
diff options
context:
space:
mode:
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2015-04-16 21:46:50 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2015-04-17 15:04:04 +0200
commitfaea2c5311e162f5ceda8e0a261a9f9ece6f921d (patch)
tree20d2aac1037c83c46e62e6d6bca4393a019780f6 /fs/hfs
parentnilfs2: put out gfp mask manipulation from nilfs_set_inode_flags() (diff)
downloadlinux-faea2c5311e162f5ceda8e0a261a9f9ece6f921d.tar.xz
linux-faea2c5311e162f5ceda8e0a261a9f9ece6f921d.zip
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 <konishi.ryusuke@lab.ntt.co.jp> Cc: "Theodore Ts'o" <tytso@mit.edu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/hfs')
0 files changed, 0 insertions, 0 deletions