diff options
author | Theodore Ts'o <tytso@mit.edu> | 2009-04-25 22:54:04 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2009-04-25 22:54:04 -0400 |
commit | 3b9d4ed26680771295d904a6b83e88e620780893 (patch) | |
tree | 905b0e95697839c446c86250cf38dd256f5e846a /fs/ext4/super.c | |
parent | a63c9eb2ce6f5028da90f282798232c4f398ceb8 (diff) | |
download | linux-3b9d4ed26680771295d904a6b83e88e620780893.tar.bz2 |
ext4: 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().
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r-- | fs/ext4/super.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 45d0ada9bfce..7f43fde9554b 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -2645,6 +2645,7 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent) sb->dq_op = &ext4_quota_operations; #endif INIT_LIST_HEAD(&sbi->s_orphan); /* unlinked but open files */ + mutex_init(&sbi->s_orphan_lock); sb->s_root = NULL; |