diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-22 13:52:01 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-22 13:52:01 -0400 |
commit | 79f14b7c56d3b3ba58f8b43d1f70b9b71477a800 (patch) | |
tree | 3bb53b7806c1baba6cc24b91724a9264cceccd39 /fs/ext4 | |
parent | c37927d4359e81b85de644f8fb08878717cf5f3f (diff) | |
parent | 6d7bccc2215c37205ede6c9cf84db64e7c4f9443 (diff) |
Merge branch 'vfs' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl
* 'vfs' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl: (30 commits)
BKL: remove BKL from freevxfs
BKL: remove BKL from qnx4
autofs4: Only declare function when CONFIG_COMPAT is defined
autofs: Only declare function when CONFIG_COMPAT is defined
ncpfs: Lock socket in ncpfs while setting its callbacks
fs/locks.c: prepare for BKL removal
BKL: Remove BKL from ncpfs
BKL: Remove BKL from OCFS2
BKL: Remove BKL from squashfs
BKL: Remove BKL from jffs2
BKL: Remove BKL from ecryptfs
BKL: Remove BKL from afs
BKL: Remove BKL from USB gadgetfs
BKL: Remove BKL from autofs4
BKL: Remove BKL from isofs
BKL: Remove BKL from fat
BKL: Remove BKL from ext2 filesystem
BKL: Remove BKL from do_new_mount()
BKL: Remove BKL from cgroup
BKL: Remove BKL from NTFS
...
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/super.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 7f47c366bf15..8ecc1e590303 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); |
@@ -2588,8 +2585,6 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent) | |||
2588 | sbi->s_sectors_written_start = | 2585 | sbi->s_sectors_written_start = |
2589 | part_stat_read(sb->s_bdev->bd_part, sectors[1]); | 2586 | part_stat_read(sb->s_bdev->bd_part, sectors[1]); |
2590 | 2587 | ||
2591 | unlock_kernel(); | ||
2592 | |||
2593 | /* Cleanup superblock name */ | 2588 | /* Cleanup superblock name */ |
2594 | for (cp = sb->s_id; (cp = strchr(cp, '/'));) | 2589 | for (cp = sb->s_id; (cp = strchr(cp, '/'));) |
2595 | *cp = '!'; | 2590 | *cp = '!'; |
@@ -3164,7 +3159,6 @@ no_journal: | |||
3164 | if (es->s_error_count) | 3159 | if (es->s_error_count) |
3165 | mod_timer(&sbi->s_err_report, jiffies + 300*HZ); /* 5 minutes */ | 3160 | mod_timer(&sbi->s_err_report, jiffies + 300*HZ); /* 5 minutes */ |
3166 | 3161 | ||
3167 | lock_kernel(); | ||
3168 | kfree(orig_data); | 3162 | kfree(orig_data); |
3169 | return 0; | 3163 | return 0; |
3170 | 3164 | ||
@@ -3211,7 +3205,6 @@ out_fail: | |||
3211 | sb->s_fs_info = NULL; | 3205 | sb->s_fs_info = NULL; |
3212 | kfree(sbi->s_blockgroup_lock); | 3206 | kfree(sbi->s_blockgroup_lock); |
3213 | kfree(sbi); | 3207 | kfree(sbi); |
3214 | lock_kernel(); | ||
3215 | out_free_orig: | 3208 | out_free_orig: |
3216 | kfree(orig_data); | 3209 | kfree(orig_data); |
3217 | return ret; | 3210 | return ret; |
@@ -3720,8 +3713,6 @@ static int ext4_remount(struct super_block *sb, int *flags, char *data) | |||
3720 | #endif | 3713 | #endif |
3721 | char *orig_data = kstrdup(data, GFP_KERNEL); | 3714 | char *orig_data = kstrdup(data, GFP_KERNEL); |
3722 | 3715 | ||
3723 | lock_kernel(); | ||
3724 | |||
3725 | /* Store the original options */ | 3716 | /* Store the original options */ |
3726 | lock_super(sb); | 3717 | lock_super(sb); |
3727 | old_sb_flags = sb->s_flags; | 3718 | old_sb_flags = sb->s_flags; |
@@ -3856,7 +3847,6 @@ static int ext4_remount(struct super_block *sb, int *flags, char *data) | |||
3856 | kfree(old_opts.s_qf_names[i]); | 3847 | kfree(old_opts.s_qf_names[i]); |
3857 | #endif | 3848 | #endif |
3858 | unlock_super(sb); | 3849 | unlock_super(sb); |
3859 | unlock_kernel(); | ||
3860 | if (enable_quota) | 3850 | if (enable_quota) |
3861 | dquot_resume(sb, -1); | 3851 | dquot_resume(sb, -1); |
3862 | 3852 | ||
@@ -3882,7 +3872,6 @@ restore_opts: | |||
3882 | } | 3872 | } |
3883 | #endif | 3873 | #endif |
3884 | unlock_super(sb); | 3874 | unlock_super(sb); |
3885 | unlock_kernel(); | ||
3886 | kfree(orig_data); | 3875 | kfree(orig_data); |
3887 | return err; | 3876 | return err; |
3888 | } | 3877 | } |