diff options
Diffstat (limited to 'fs/ocfs2')
-rw-r--r-- | fs/ocfs2/super.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c index 02737596b597..201b40a441fe 100644 --- a/fs/ocfs2/super.c +++ b/fs/ocfs2/super.c | |||
@@ -42,6 +42,7 @@ | |||
42 | #include <linux/mount.h> | 42 | #include <linux/mount.h> |
43 | #include <linux/seq_file.h> | 43 | #include <linux/seq_file.h> |
44 | #include <linux/quotaops.h> | 44 | #include <linux/quotaops.h> |
45 | #include <linux/smp_lock.h> | ||
45 | 46 | ||
46 | #define MLOG_MASK_PREFIX ML_SUPER | 47 | #define MLOG_MASK_PREFIX ML_SUPER |
47 | #include <cluster/masklog.h> | 48 | #include <cluster/masklog.h> |
@@ -581,6 +582,8 @@ static int ocfs2_remount(struct super_block *sb, int *flags, char *data) | |||
581 | struct mount_options parsed_options; | 582 | struct mount_options parsed_options; |
582 | struct ocfs2_super *osb = OCFS2_SB(sb); | 583 | struct ocfs2_super *osb = OCFS2_SB(sb); |
583 | 584 | ||
585 | lock_kernel(); | ||
586 | |||
584 | if (!ocfs2_parse_options(sb, data, &parsed_options, 1)) { | 587 | if (!ocfs2_parse_options(sb, data, &parsed_options, 1)) { |
585 | ret = -EINVAL; | 588 | ret = -EINVAL; |
586 | goto out; | 589 | goto out; |
@@ -684,6 +687,7 @@ unlock_osb: | |||
684 | ocfs2_set_journal_params(osb); | 687 | ocfs2_set_journal_params(osb); |
685 | } | 688 | } |
686 | out: | 689 | out: |
690 | unlock_kernel(); | ||
687 | return ret; | 691 | return ret; |
688 | } | 692 | } |
689 | 693 | ||