]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit - fs/ext4/super.c
ext4: add a new spinlock i_raw_lock to protect the ext4's raw inode
authorTheodore Ts'o <tytso@mit.edu>
Mon, 21 Apr 2014 18:37:55 +0000 (14:37 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 21 Apr 2014 18:37:55 +0000 (14:37 -0400)
commit202ee5df38b33f7ea28286807a0b548b49613194
tree5737ca8bd3f24d2af02c269e0be06ee255157fc0
parentf5ccfe1ddbaf9d923a3ebdadcb1e5e32d83e9c28
ext4: add a new spinlock i_raw_lock to protect the ext4's raw inode

To avoid potential data races, use a spinlock which protects the raw
(on-disk) inode.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: Jan Kara <jack@suse.cz>
fs/ext4/ext4.h
fs/ext4/inode.c
fs/ext4/super.c