diff options
author | Eric Sandeen <sandeen@redhat.com> | 2009-12-14 14:00:30 -0500 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2009-12-23 07:44:11 -0500 |
commit | b8a052d01669977f224255b0f9f2737018171ddb (patch) | |
tree | 2ef6c2e038d269f2bc4eb73e82439f0301d5c6b1 /include/linux | |
parent | 4854a5f0cbb1967fc7db3ea861d97afeea78b88b (diff) |
ext3: Replace lock/unlock_super() with an explicit lock for the orphan list
Use a separate lock to protect the orphan list, so we can stop
overloading the use of lock_super().
Port of ext4 commit 3b9d4ed26680771295d904a6b83e88e620780893
by Theodore Ts'o <tytso@mit.edu>.
CC: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/ext3_fs_sb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/ext3_fs_sb.h b/include/linux/ext3_fs_sb.h index f07f34de2f0e..dd61d83026a0 100644 --- a/include/linux/ext3_fs_sb.h +++ b/include/linux/ext3_fs_sb.h | |||
@@ -72,6 +72,7 @@ struct ext3_sb_info { | |||
72 | struct inode * s_journal_inode; | 72 | struct inode * s_journal_inode; |
73 | struct journal_s * s_journal; | 73 | struct journal_s * s_journal; |
74 | struct list_head s_orphan; | 74 | struct list_head s_orphan; |
75 | struct mutex s_orphan_lock; | ||
75 | unsigned long s_commit_interval; | 76 | unsigned long s_commit_interval; |
76 | struct block_device *journal_bdev; | 77 | struct block_device *journal_bdev; |
77 | #ifdef CONFIG_JBD_DEBUG | 78 | #ifdef CONFIG_JBD_DEBUG |