]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ext4: Use bitops to read/modify EXT4_I(inode)->i_state
authorTheodore Ts'o <tytso@mit.edu>
Sun, 24 Jan 2010 19:34:07 +0000 (14:34 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 24 Jan 2010 19:34:07 +0000 (14:34 -0500)
commit19f5fb7ad679bb361222c7916086435020c37cce
tree9e301163075c4faaf340cf50afd51855c76acd8c
parentd2eecb03936878ec574ade5532fa83df7d75dde7
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 <jack@suse.cz>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/ext4.h
fs/ext4/extents.c
fs/ext4/file.c
fs/ext4/ialloc.c
fs/ext4/inode.c
fs/ext4/migrate.c
fs/ext4/xattr.c