diff options
Diffstat (limited to 'fs/udf/super.c')
-rw-r--r-- | fs/udf/super.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/fs/udf/super.c b/fs/udf/super.c index 1e4543cbcd27..612d1e2e285a 100644 --- a/fs/udf/super.c +++ b/fs/udf/super.c | |||
@@ -557,6 +557,7 @@ static int udf_remount_fs(struct super_block *sb, int *flags, char *options) | |||
557 | { | 557 | { |
558 | struct udf_options uopt; | 558 | struct udf_options uopt; |
559 | struct udf_sb_info *sbi = UDF_SB(sb); | 559 | struct udf_sb_info *sbi = UDF_SB(sb); |
560 | int error = 0; | ||
560 | 561 | ||
561 | uopt.flags = sbi->s_flags; | 562 | uopt.flags = sbi->s_flags; |
562 | uopt.uid = sbi->s_uid; | 563 | uopt.uid = sbi->s_uid; |
@@ -582,17 +583,17 @@ static int udf_remount_fs(struct super_block *sb, int *flags, char *options) | |||
582 | *flags |= MS_RDONLY; | 583 | *flags |= MS_RDONLY; |
583 | } | 584 | } |
584 | 585 | ||
585 | if ((*flags & MS_RDONLY) == (sb->s_flags & MS_RDONLY)) { | 586 | if ((*flags & MS_RDONLY) == (sb->s_flags & MS_RDONLY)) |
586 | unlock_kernel(); | 587 | goto out_unlock; |
587 | return 0; | 588 | |
588 | } | ||
589 | if (*flags & MS_RDONLY) | 589 | if (*flags & MS_RDONLY) |
590 | udf_close_lvid(sb); | 590 | udf_close_lvid(sb); |
591 | else | 591 | else |
592 | udf_open_lvid(sb); | 592 | udf_open_lvid(sb); |
593 | 593 | ||
594 | out_unlock: | ||
594 | unlock_kernel(); | 595 | unlock_kernel(); |
595 | return 0; | 596 | return error; |
596 | } | 597 | } |
597 | 598 | ||
598 | /* Check Volume Structure Descriptors (ECMA 167 2/9.1) */ | 599 | /* Check Volume Structure Descriptors (ECMA 167 2/9.1) */ |
@@ -1939,7 +1940,7 @@ static int udf_fill_super(struct super_block *sb, void *options, int silent) | |||
1939 | /* Fill in the rest of the superblock */ | 1940 | /* Fill in the rest of the superblock */ |
1940 | sb->s_op = &udf_sb_ops; | 1941 | sb->s_op = &udf_sb_ops; |
1941 | sb->s_export_op = &udf_export_ops; | 1942 | sb->s_export_op = &udf_export_ops; |
1942 | sb->dq_op = NULL; | 1943 | |
1943 | sb->s_dirt = 0; | 1944 | sb->s_dirt = 0; |
1944 | sb->s_magic = UDF_SUPER_MAGIC; | 1945 | sb->s_magic = UDF_SUPER_MAGIC; |
1945 | sb->s_time_gran = 1000; | 1946 | sb->s_time_gran = 1000; |