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-14 15:31:03 -07:00
2015-04-11 22:29:40 -04:00
2015-04-11 22:29:37 -04:00
2015-04-17 09:04:03 -04:00
2015-04-11 22:29:40 -04:00
2015-04-11 22:29:40 -04:00
2015-02-22 11:38:41 -05:00
2015-04-11 22:29:40 -04:00
2015-04-15 13:22:56 -07:00
2015-04-11 22:29:40 -04:00
2015-02-20 04:56:43 -05:00
2014-08-08 15:57:25 -07:00
2015-04-03 16:30:12 +02:00
2015-01-18 01:03:45 -05:00
2015-04-11 22:29:40 -04:00
2015-01-29 19:16:40 +01:00
2014-08-08 15:57:18 -07:00
2015-04-11 22:29:40 -04:00
2015-02-22 11:38:41 -05:00
2015-04-15 16:39:15 -07:00
2015-04-11 22:29:40 -04:00
2015-04-15 16:39:15 -07:00
2015-04-11 22:29:40 -04:00
2015-04-11 22:29:40 -04:00
2014-10-13 17:52:21 +01:00
2015-04-11 22:29:41 -04:00
2015-04-15 13:22:56 -07:00
2015-04-11 22:29:40 -04:00
2015-04-14 15:31:03 -07:00
2015-04-15 13:49:27 -07:00
2015-04-11 22:29:40 -04:00
2015-02-22 11:38:41 -05:00
2015-04-15 16:39:15 -07:00
2015-01-07 09:51:49 +01:00
2014-11-18 10:15:29 +01:00
2015-01-19 15:59:58 -05:00
2015-04-15 13:22:56 -07:00
2015-04-15 16:39:15 -07:00
2015-03-16 21:51:20 +01:00
2015-02-12 10:39:41 -08: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-15 16:39:15 -07:00
2014-09-17 16:33:11 -04:00
2015-04-15 16:39:15 -07:00
2015-04-17 09:04:04 -04:00
2015-03-12 18:46:08 -07:00
2015-04-11 22:29:40 -04:00
2015-04-15 13:22:56 -07:00
2015-04-11 22:29:40 -04:00
2015-03-18 10:29:48 +01:00
2015-04-15 16:35:25 -07:00
2015-03-16 11:14:10 -07:00
2014-08-08 15:57:26 -07:00
2015-02-10 15:52:38 -08: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-27 18:48:44 +00:00
2015-03-25 13:27:57 +01:00
2015-04-11 22:29:40 -04:00
2015-02-03 12:48:43 -05:00
2015-04-15 13:43:40 -07: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-15 13:22:56 -07:00
2015-02-20 04:03:58 -05:00
2014-11-19 13:01:20 -05:00
2014-10-09 02:39:00 -04:00
2015-04-14 16:49:05 -07:00
2014-12-13 12:42:51 -08:00
2015-04-17 09:03:59 -04:00
2014-12-13 12:42:51 -08:00
2015-04-11 22:29:40 -04:00
2015-04-14 16:49:01 -07:00
2015-01-20 14:02:58 -07:00
2015-04-03 23:21:34 +02:00
2014-10-31 17:48:54 -04:00
2015-04-11 22:29:39 -04:00
2015-04-15 16:35:20 -07:00
2015-04-11 22:24:33 -04:00
2015-03-25 20:28:11 -04:00
2015-02-12 18:54:09 -08:00
2015-02-17 14:34:52 -08:00
2015-02-13 21:21:40 -08:00
2015-01-23 00:22:20 -05:00
2015-01-08 15:10:52 -08:00
2015-04-11 22:29:43 -04:00
2014-12-10 17:41:10 -08:00
2015-01-25 23:17:29 -05:00
2015-03-17 12:23:32 -04:00
2015-02-17 16:12:34 -08:00
2015-02-22 11:38:42 -05:00
2015-02-10 14:30:30 -08:00
2015-02-16 17:56:04 -08:00
2015-04-14 16:49:05 -07:00
2015-02-22 11:38:41 -05:00
2015-04-03 09:04:04 -04:00
2015-04-14 10:22:29 -07:00
2015-01-25 23:17:29 -05:00
2014-10-09 22:25:53 -04:00
2015-04-11 22:24:30 -04:00
2015-02-22 11:38:41 -05:00
2014-12-10 21:30:20 -05:00
2015-04-11 22:29:43 -04:00
2015-04-11 22:29:40 -04:00
2014-12-02 10:46:50 -06:00
2015-02-22 11:38:41 -05:00
2015-02-05 02:45:00 -05:00
2015-04-11 22:29:43 -04:00
2014-10-31 17:48:54 -04:00
2015-02-12 18:54:12 -08:00
2015-02-13 21:21:39 -08:00
2014-11-05 14:13:23 -05:00
2015-04-15 16:35:20 -07:00
2014-08-26 09:35:56 +02:00
2015-04-11 22:24:32 -04:00
2015-04-14 16:49:03 -07:00
2015-02-05 02:45:00 -05:00
2014-11-05 14:13:23 -05:00
2014-11-19 13:01:26 -05:00