diff options
author | Theodore Ts'o <tytso@mit.edu> | 2014-04-21 22:37:55 +0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2014-04-21 22:37:55 +0400 |
commit | 202ee5df38b33f7ea28286807a0b548b49613194 (patch) | |
tree | 5737ca8bd3f24d2af02c269e0be06ee255157fc0 /fs/ext4/ext4.h | |
parent | f5ccfe1ddbaf9d923a3ebdadcb1e5e32d83e9c28 (diff) | |
download | linux-202ee5df38b33f7ea28286807a0b548b49613194.tar.xz |
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>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r-- | fs/ext4/ext4.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index 86c2cda208ea..1d08a1b51bdd 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h @@ -875,6 +875,8 @@ struct ext4_inode_info { struct inode vfs_inode; struct jbd2_inode *jinode; + spinlock_t i_raw_lock; /* protects updates to the raw inode */ + /* * File creation time. Its function is same as that of * struct timespec i_{a,c,m}time in the generic inode. |