Ryusuke Konishi faea2c5311 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>
2015-04-17 09:04:04 -04:00
..
2015-04-11 22:29:40 -04:00
2015-04-11 22:29:40 -04:00
2015-04-11 22:29:40 -04:00
2015-04-11 22:29:37 -04:00
2015-04-11 22:29:40 -04:00
2015-04-11 22:29:40 -04:00
2015-04-11 22:29:40 -04:00
2015-04-11 22:29:40 -04:00
2015-04-11 22:29:40 -04:00
2015-04-11 22:29:40 -04:00
2015-04-11 22:29:40 -04:00
2015-04-11 22:29:40 -04:00
2015-04-11 22:29:40 -04:00
2015-04-11 22:29:40 -04:00
2015-04-11 22:29:40 -04:00
2015-04-11 22:29:40 -04:00
2015-04-11 22:29:40 -04:00
2015-04-11 22:29:40 -04:00
2015-04-11 22:29:40 -04:00
2015-03-18 10:29:48 +01:00
2015-04-11 22:29:40 -04:00
2015-04-11 22:29:40 -04:00
2015-04-11 22:29:40 -04:00
2015-04-11 22:29:40 -04:00
2015-04-11 22:29:40 -04:00
2015-04-11 22:29:40 -04:00
2014-11-19 13:01:20 -05:00
2015-04-11 22:29:39 -04:00
2015-03-25 20:28:11 -04:00
2015-04-11 22:29:43 -04:00
2015-04-11 22:29:40 -04:00
2014-08-26 09:35:56 +02:00
2014-11-19 13:01:26 -05:00