aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/ext4/super.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 0f0021f4990c..24e7699f915d 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -26,7 +26,6 @@
26#include <linux/init.h> 26#include <linux/init.h>
27#include <linux/blkdev.h> 27#include <linux/blkdev.h>
28#include <linux/parser.h> 28#include <linux/parser.h>
29#include <linux/smp_lock.h>
30#include <linux/buffer_head.h> 29#include <linux/buffer_head.h>
31#include <linux/exportfs.h> 30#include <linux/exportfs.h>
32#include <linux/vfs.h> 31#include <linux/vfs.h>
@@ -708,7 +707,6 @@ static void ext4_put_super(struct super_block *sb)
708 destroy_workqueue(sbi->dio_unwritten_wq); 707 destroy_workqueue(sbi->dio_unwritten_wq);
709 708
710 lock_super(sb); 709 lock_super(sb);
711 lock_kernel();
712 if (sb->s_dirt) 710 if (sb->s_dirt)
713 ext4_commit_super(sb, 1); 711 ext4_commit_super(sb, 1);
714 712
@@ -775,7 +773,6 @@ static void ext4_put_super(struct super_block *sb)
775 * Now that we are completely done shutting down the 773 * Now that we are completely done shutting down the
776 * superblock, we need to actually destroy the kobject. 774 * superblock, we need to actually destroy the kobject.
777 */ 775 */
778 unlock_kernel();
779 unlock_super(sb); 776 unlock_super(sb);
780 kobject_put(&sbi->s_kobj); 777 kobject_put(&sbi->s_kobj);
781 wait_for_completion(&sbi->s_kobj_unregister); 778 wait_for_completion(&sbi->s_kobj_unregister);
@@ -2568,8 +2565,6 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent)
2568 int err; 2565 int err;
2569 unsigned int journal_ioprio = DEFAULT_JOURNAL_IOPRIO; 2566 unsigned int journal_ioprio = DEFAULT_JOURNAL_IOPRIO;
2570 2567
2571 lock_kernel();
2572
2573 sbi = kzalloc(sizeof(*sbi), GFP_KERNEL); 2568 sbi = kzalloc(sizeof(*sbi), GFP_KERNEL);
2574 if (!sbi) 2569 if (!sbi)
2575 goto out_free_orig; 2570 goto out_free_orig;
@@ -2590,8 +2585,6 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent)
2590 sbi->s_sectors_written_start = 2585 sbi->s_sectors_written_start =
2591 part_stat_read(sb->s_bdev->bd_part, sectors[1]); 2586 part_stat_read(sb->s_bdev->bd_part, sectors[1]);
2592 2587
2593 unlock_kernel();
2594
2595 /* Cleanup superblock name */ 2588 /* Cleanup superblock name */
2596 for (cp = sb->s_id; (cp = strchr(cp, '/'));) 2589 for (cp = sb->s_id; (cp = strchr(cp, '/'));)
2597 *cp = '!'; 2590 *cp = '!';
@@ -3214,11 +3207,7 @@ out_fail:
3214 sb->s_fs_info = NULL; 3207 sb->s_fs_info = NULL;
3215 kfree(sbi->s_blockgroup_lock); 3208 kfree(sbi->s_blockgroup_lock);
3216 kfree(sbi); 3209 kfree(sbi);
3217 kfree(orig_data);
3218 return ret;
3219
3220out_free_orig: 3210out_free_orig:
3221 unlock_kernel();
3222 kfree(orig_data); 3211 kfree(orig_data);
3223 return ret; 3212 return ret;
3224} 3213}
@@ -3726,8 +3715,6 @@ static int ext4_remount(struct super_block *sb, int *flags, char *data)
3726#endif 3715#endif
3727 char *orig_data = kstrdup(data, GFP_KERNEL); 3716 char *orig_data = kstrdup(data, GFP_KERNEL);
3728 3717
3729 lock_kernel();
3730
3731 /* Store the original options */ 3718 /* Store the original options */
3732 lock_super(sb); 3719 lock_super(sb);
3733 old_sb_flags = sb->s_flags; 3720 old_sb_flags = sb->s_flags;
@@ -3862,7 +3849,6 @@ static int ext4_remount(struct super_block *sb, int *flags, char *data)
3862 kfree(old_opts.s_qf_names[i]); 3849 kfree(old_opts.s_qf_names[i]);
3863#endif 3850#endif
3864 unlock_super(sb); 3851 unlock_super(sb);
3865 unlock_kernel();
3866 if (enable_quota) 3852 if (enable_quota)
3867 dquot_resume(sb, -1); 3853 dquot_resume(sb, -1);
3868 3854
@@ -3888,7 +3874,6 @@ restore_opts:
3888 } 3874 }
3889#endif 3875#endif
3890 unlock_super(sb); 3876 unlock_super(sb);
3891 unlock_kernel();
3892 kfree(orig_data); 3877 kfree(orig_data);
3893 return err; 3878 return err;
3894} 3879}