From: Zhang Zhen Date: Tue, 15 Apr 2014 06:19:38 +0000 (+0800) Subject: f2fs: atomically set inode->i_flags in f2fs_set_inode_flags() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~73^2~43 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8abfb36ab396377ea712cd640c525fd5535d1dc9;p=pandora-kernel.git f2fs: atomically set inode->i_flags in f2fs_set_inode_flags() Use set_mask_bits() 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, etc. flags, since this opens up a race where an immutable file has the immutable flag cleared for a brief window of time. Signed-off-by: Zhang Zhen Signed-off-by: Jaegeuk Kim --- Reading git-diff-tree failed