From: Ryusuke Konishi Date: Thu, 16 Apr 2015 19:46:50 +0000 (-0700) Subject: nilfs2: use inode_set_flags() in nilfs_set_inode_flags() X-Git-Tag: omap-for-v4.1/fixes-rc1~115^2~59 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=faea2c5311e162f5ceda8e0a261a9f9ece6f921d;p=pandora-kernel.git 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 Cc: "Theodore Ts'o" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed