diff options
Diffstat (limited to 'fs/nilfs2')
-rw-r--r-- | fs/nilfs2/ioctl.c | 1 | ||||
-rw-r--r-- | fs/nilfs2/super.c | 10 |
2 files changed, 0 insertions, 11 deletions
diff --git a/fs/nilfs2/ioctl.c b/fs/nilfs2/ioctl.c index f90a33d9a5b0..0442ee3b394f 100644 --- a/fs/nilfs2/ioctl.c +++ b/fs/nilfs2/ioctl.c | |||
@@ -22,7 +22,6 @@ | |||
22 | 22 | ||
23 | #include <linux/fs.h> | 23 | #include <linux/fs.h> |
24 | #include <linux/wait.h> | 24 | #include <linux/wait.h> |
25 | #include <linux/smp_lock.h> /* lock_kernel(), unlock_kernel() */ | ||
26 | #include <linux/slab.h> | 25 | #include <linux/slab.h> |
27 | #include <linux/capability.h> /* capable() */ | 26 | #include <linux/capability.h> /* capable() */ |
28 | #include <linux/uaccess.h> /* copy_from_user(), copy_to_user() */ | 27 | #include <linux/uaccess.h> /* copy_from_user(), copy_to_user() */ |
diff --git a/fs/nilfs2/super.c b/fs/nilfs2/super.c index faa5078ff751..f3b75206e956 100644 --- a/fs/nilfs2/super.c +++ b/fs/nilfs2/super.c | |||
@@ -45,7 +45,6 @@ | |||
45 | #include <linux/parser.h> | 45 | #include <linux/parser.h> |
46 | #include <linux/random.h> | 46 | #include <linux/random.h> |
47 | #include <linux/crc32.h> | 47 | #include <linux/crc32.h> |
48 | #include <linux/smp_lock.h> | ||
49 | #include <linux/vfs.h> | 48 | #include <linux/vfs.h> |
50 | #include <linux/writeback.h> | 49 | #include <linux/writeback.h> |
51 | #include <linux/kobject.h> | 50 | #include <linux/kobject.h> |
@@ -334,8 +333,6 @@ static void nilfs_put_super(struct super_block *sb) | |||
334 | struct nilfs_sb_info *sbi = NILFS_SB(sb); | 333 | struct nilfs_sb_info *sbi = NILFS_SB(sb); |
335 | struct the_nilfs *nilfs = sbi->s_nilfs; | 334 | struct the_nilfs *nilfs = sbi->s_nilfs; |
336 | 335 | ||
337 | lock_kernel(); | ||
338 | |||
339 | nilfs_detach_segment_constructor(sbi); | 336 | nilfs_detach_segment_constructor(sbi); |
340 | 337 | ||
341 | if (!(sb->s_flags & MS_RDONLY)) { | 338 | if (!(sb->s_flags & MS_RDONLY)) { |
@@ -353,8 +350,6 @@ static void nilfs_put_super(struct super_block *sb) | |||
353 | sbi->s_super = NULL; | 350 | sbi->s_super = NULL; |
354 | sb->s_fs_info = NULL; | 351 | sb->s_fs_info = NULL; |
355 | nilfs_put_sbinfo(sbi); | 352 | nilfs_put_sbinfo(sbi); |
356 | |||
357 | unlock_kernel(); | ||
358 | } | 353 | } |
359 | 354 | ||
360 | static int nilfs_sync_fs(struct super_block *sb, int wait) | 355 | static int nilfs_sync_fs(struct super_block *sb, int wait) |
@@ -941,8 +936,6 @@ static int nilfs_remount(struct super_block *sb, int *flags, char *data) | |||
941 | struct nilfs_mount_options old_opts; | 936 | struct nilfs_mount_options old_opts; |
942 | int was_snapshot, err; | 937 | int was_snapshot, err; |
943 | 938 | ||
944 | lock_kernel(); | ||
945 | |||
946 | down_write(&nilfs->ns_super_sem); | 939 | down_write(&nilfs->ns_super_sem); |
947 | old_sb_flags = sb->s_flags; | 940 | old_sb_flags = sb->s_flags; |
948 | old_opts.mount_opt = sbi->s_mount_opt; | 941 | old_opts.mount_opt = sbi->s_mount_opt; |
@@ -1016,7 +1009,6 @@ static int nilfs_remount(struct super_block *sb, int *flags, char *data) | |||
1016 | } | 1009 | } |
1017 | out: | 1010 | out: |
1018 | up_write(&nilfs->ns_super_sem); | 1011 | up_write(&nilfs->ns_super_sem); |
1019 | unlock_kernel(); | ||
1020 | return 0; | 1012 | return 0; |
1021 | 1013 | ||
1022 | restore_opts: | 1014 | restore_opts: |
@@ -1024,7 +1016,6 @@ static int nilfs_remount(struct super_block *sb, int *flags, char *data) | |||
1024 | sbi->s_mount_opt = old_opts.mount_opt; | 1016 | sbi->s_mount_opt = old_opts.mount_opt; |
1025 | sbi->s_snapshot_cno = old_opts.snapshot_cno; | 1017 | sbi->s_snapshot_cno = old_opts.snapshot_cno; |
1026 | up_write(&nilfs->ns_super_sem); | 1018 | up_write(&nilfs->ns_super_sem); |
1027 | unlock_kernel(); | ||
1028 | return err; | 1019 | return err; |
1029 | } | 1020 | } |
1030 | 1021 | ||
@@ -1197,7 +1188,6 @@ nilfs_get_sb(struct file_system_type *fs_type, int flags, | |||
1197 | put_nilfs(nilfs); | 1188 | put_nilfs(nilfs); |
1198 | failed: | 1189 | failed: |
1199 | close_bdev_exclusive(sd.bdev, mode); | 1190 | close_bdev_exclusive(sd.bdev, mode); |
1200 | |||
1201 | return err; | 1191 | return err; |
1202 | 1192 | ||
1203 | cancel_new: | 1193 | cancel_new: |