diff options
Diffstat (limited to 'fs/afs/super.c')
-rw-r--r-- | fs/afs/super.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/fs/afs/super.c b/fs/afs/super.c index 6c2fef44d385..eacf76d98ae0 100644 --- a/fs/afs/super.c +++ b/fs/afs/super.c | |||
@@ -19,7 +19,6 @@ | |||
19 | #include <linux/mount.h> | 19 | #include <linux/mount.h> |
20 | #include <linux/init.h> | 20 | #include <linux/init.h> |
21 | #include <linux/slab.h> | 21 | #include <linux/slab.h> |
22 | #include <linux/smp_lock.h> | ||
23 | #include <linux/fs.h> | 22 | #include <linux/fs.h> |
24 | #include <linux/pagemap.h> | 23 | #include <linux/pagemap.h> |
25 | #include <linux/parser.h> | 24 | #include <linux/parser.h> |
@@ -302,15 +301,12 @@ static int afs_fill_super(struct super_block *sb, void *data) | |||
302 | struct inode *inode = NULL; | 301 | struct inode *inode = NULL; |
303 | int ret; | 302 | int ret; |
304 | 303 | ||
305 | lock_kernel(); | ||
306 | |||
307 | _enter(""); | 304 | _enter(""); |
308 | 305 | ||
309 | /* allocate a superblock info record */ | 306 | /* allocate a superblock info record */ |
310 | as = kzalloc(sizeof(struct afs_super_info), GFP_KERNEL); | 307 | as = kzalloc(sizeof(struct afs_super_info), GFP_KERNEL); |
311 | if (!as) { | 308 | if (!as) { |
312 | _leave(" = -ENOMEM"); | 309 | _leave(" = -ENOMEM"); |
313 | unlock_kernel(); | ||
314 | return -ENOMEM; | 310 | return -ENOMEM; |
315 | } | 311 | } |
316 | 312 | ||
@@ -344,7 +340,6 @@ static int afs_fill_super(struct super_block *sb, void *data) | |||
344 | sb->s_root = root; | 340 | sb->s_root = root; |
345 | 341 | ||
346 | _leave(" = 0"); | 342 | _leave(" = 0"); |
347 | unlock_kernel(); | ||
348 | return 0; | 343 | return 0; |
349 | 344 | ||
350 | error_inode: | 345 | error_inode: |
@@ -358,7 +353,6 @@ error: | |||
358 | sb->s_fs_info = NULL; | 353 | sb->s_fs_info = NULL; |
359 | 354 | ||
360 | _leave(" = %d", ret); | 355 | _leave(" = %d", ret); |
361 | unlock_kernel(); | ||
362 | return ret; | 356 | return ret; |
363 | } | 357 | } |
364 | 358 | ||
@@ -458,12 +452,8 @@ static void afs_put_super(struct super_block *sb) | |||
458 | 452 | ||
459 | _enter(""); | 453 | _enter(""); |
460 | 454 | ||
461 | lock_kernel(); | ||
462 | |||
463 | afs_put_volume(as->volume); | 455 | afs_put_volume(as->volume); |
464 | 456 | ||
465 | unlock_kernel(); | ||
466 | |||
467 | _leave(""); | 457 | _leave(""); |
468 | } | 458 | } |
469 | 459 | ||