From: Theodore Ts'o Date: Sun, 24 Jan 2010 19:34:07 +0000 (-0500) Subject: ext4: Use bitops to read/modify EXT4_I(inode)->i_state X-Git-Tag: v2.6.34-rc1~199^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19f5fb7ad679bb361222c7916086435020c37cce;p=pandora-kernel.git ext4: Use bitops to read/modify EXT4_I(inode)->i_state At several places we modify EXT4_I(inode)->i_state without holding i_mutex (ext4_release_file, ext4_bmap, ext4_journalled_writepage, ext4_do_update_inode, ...). These modifications are racy and we can lose updates to i_state. So convert handling of i_state to use bitops which are atomic. Cc: Jan Kara Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed