Skip to content
Commit 9df93939 authored by Jan Kara's avatar Jan Kara
Browse files

ext3: Use bitops to read/modify EXT3_I(inode)->i_state



At several places we modify EXT3_I(inode)->i_state without holding i_mutex
(ext3_release_file, ext3_bmap, ext3_journalled_writepage, ext3_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.

Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent 26245c94
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment