diff options
Diffstat (limited to 'fs/super.c')
-rw-r--r-- | fs/super.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/super.c b/fs/super.c index 7943f04cb3a9..3f56a269a4f4 100644 --- a/fs/super.c +++ b/fs/super.c | |||
@@ -351,13 +351,11 @@ bool grab_super_passive(struct super_block *sb) | |||
351 | */ | 351 | */ |
352 | void lock_super(struct super_block * sb) | 352 | void lock_super(struct super_block * sb) |
353 | { | 353 | { |
354 | get_fs_excl(); | ||
355 | mutex_lock(&sb->s_lock); | 354 | mutex_lock(&sb->s_lock); |
356 | } | 355 | } |
357 | 356 | ||
358 | void unlock_super(struct super_block * sb) | 357 | void unlock_super(struct super_block * sb) |
359 | { | 358 | { |
360 | put_fs_excl(); | ||
361 | mutex_unlock(&sb->s_lock); | 359 | mutex_unlock(&sb->s_lock); |
362 | } | 360 | } |
363 | 361 | ||
@@ -385,7 +383,6 @@ void generic_shutdown_super(struct super_block *sb) | |||
385 | if (sb->s_root) { | 383 | if (sb->s_root) { |
386 | shrink_dcache_for_umount(sb); | 384 | shrink_dcache_for_umount(sb); |
387 | sync_filesystem(sb); | 385 | sync_filesystem(sb); |
388 | get_fs_excl(); | ||
389 | sb->s_flags &= ~MS_ACTIVE; | 386 | sb->s_flags &= ~MS_ACTIVE; |
390 | 387 | ||
391 | fsnotify_unmount_inodes(&sb->s_inodes); | 388 | fsnotify_unmount_inodes(&sb->s_inodes); |
@@ -400,7 +397,6 @@ void generic_shutdown_super(struct super_block *sb) | |||
400 | "Self-destruct in 5 seconds. Have a nice day...\n", | 397 | "Self-destruct in 5 seconds. Have a nice day...\n", |
401 | sb->s_id); | 398 | sb->s_id); |
402 | } | 399 | } |
403 | put_fs_excl(); | ||
404 | } | 400 | } |
405 | spin_lock(&sb_lock); | 401 | spin_lock(&sb_lock); |
406 | /* should be initialized for __put_super_and_need_restart() */ | 402 | /* should be initialized for __put_super_and_need_restart() */ |