diff options
Diffstat (limited to 'fs/hpfs/super.c')
-rw-r--r-- | fs/hpfs/super.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/hpfs/super.c b/fs/hpfs/super.c index f68193cf0811..f2feaa06bf26 100644 --- a/fs/hpfs/super.c +++ b/fs/hpfs/super.c | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <linux/statfs.h> | 13 | #include <linux/statfs.h> |
14 | #include <linux/magic.h> | 14 | #include <linux/magic.h> |
15 | #include <linux/sched.h> | 15 | #include <linux/sched.h> |
16 | #include <linux/smp_lock.h> | ||
16 | 17 | ||
17 | /* Mark the filesystem dirty, so that chkdsk checks it when os/2 booted */ | 18 | /* Mark the filesystem dirty, so that chkdsk checks it when os/2 booted */ |
18 | 19 | ||
@@ -398,6 +399,7 @@ static int hpfs_remount_fs(struct super_block *s, int *flags, char *data) | |||
398 | 399 | ||
399 | *flags |= MS_NOATIME; | 400 | *flags |= MS_NOATIME; |
400 | 401 | ||
402 | lock_kernel(); | ||
401 | lock_super(s); | 403 | lock_super(s); |
402 | uid = sbi->sb_uid; gid = sbi->sb_gid; | 404 | uid = sbi->sb_uid; gid = sbi->sb_gid; |
403 | umask = 0777 & ~sbi->sb_mode; | 405 | umask = 0777 & ~sbi->sb_mode; |
@@ -432,10 +434,12 @@ static int hpfs_remount_fs(struct super_block *s, int *flags, char *data) | |||
432 | replace_mount_options(s, new_opts); | 434 | replace_mount_options(s, new_opts); |
433 | 435 | ||
434 | unlock_super(s); | 436 | unlock_super(s); |
437 | unlock_kernel(); | ||
435 | return 0; | 438 | return 0; |
436 | 439 | ||
437 | out_err: | 440 | out_err: |
438 | unlock_super(s); | 441 | unlock_super(s); |
442 | unlock_kernel(); | ||
439 | kfree(new_opts); | 443 | kfree(new_opts); |
440 | return -EINVAL; | 444 | return -EINVAL; |
441 | } | 445 | } |