ext4: Use bitops to read/modify i_flags in struct ext4_inode_info
authorDmitry Monakhov <dmonakhov@openvz.org>
Mon, 17 May 2010 02:00:00 +0000 (22:00 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 17 May 2010 02:00:00 +0000 (22:00 -0400)
At several places we modify EXT4_I(inode)->i_flags without holding
i_mutex (ext4_do_update_inode, ...). These modifications are racy and
we can lose updates to i_flags. So convert handling of i_flags to use
bitops which are atomic.

https://bugzilla.kernel.org/show_bug.cgi?id=15792

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>

No differences found