diff options
-rw-r--r-- | fs/ext2/super.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/fs/ext2/super.c b/fs/ext2/super.c index 513cd421ac0b..d8b9abd95d07 100644 --- a/fs/ext2/super.c +++ b/fs/ext2/super.c | |||
@@ -364,7 +364,6 @@ static int parse_options (char * options, | |||
364 | { | 364 | { |
365 | char * p; | 365 | char * p; |
366 | substring_t args[MAX_OPT_ARGS]; | 366 | substring_t args[MAX_OPT_ARGS]; |
367 | unsigned long kind = EXT2_MOUNT_ERRORS_CONT; | ||
368 | int option; | 367 | int option; |
369 | 368 | ||
370 | if (!options) | 369 | if (!options) |
@@ -404,13 +403,19 @@ static int parse_options (char * options, | |||
404 | /* *sb_block = match_int(&args[0]); */ | 403 | /* *sb_block = match_int(&args[0]); */ |
405 | break; | 404 | break; |
406 | case Opt_err_panic: | 405 | case Opt_err_panic: |
407 | kind = EXT2_MOUNT_ERRORS_PANIC; | 406 | clear_opt (sbi->s_mount_opt, ERRORS_CONT); |
407 | clear_opt (sbi->s_mount_opt, ERRORS_RO); | ||
408 | set_opt (sbi->s_mount_opt, ERRORS_PANIC); | ||
408 | break; | 409 | break; |
409 | case Opt_err_ro: | 410 | case Opt_err_ro: |
410 | kind = EXT2_MOUNT_ERRORS_RO; | 411 | clear_opt (sbi->s_mount_opt, ERRORS_CONT); |
412 | clear_opt (sbi->s_mount_opt, ERRORS_PANIC); | ||
413 | set_opt (sbi->s_mount_opt, ERRORS_RO); | ||
411 | break; | 414 | break; |
412 | case Opt_err_cont: | 415 | case Opt_err_cont: |
413 | kind = EXT2_MOUNT_ERRORS_CONT; | 416 | clear_opt (sbi->s_mount_opt, ERRORS_RO); |
417 | clear_opt (sbi->s_mount_opt, ERRORS_PANIC); | ||
418 | set_opt (sbi->s_mount_opt, ERRORS_CONT); | ||
414 | break; | 419 | break; |
415 | case Opt_nouid32: | 420 | case Opt_nouid32: |
416 | set_opt (sbi->s_mount_opt, NO_UID32); | 421 | set_opt (sbi->s_mount_opt, NO_UID32); |
@@ -489,7 +494,6 @@ static int parse_options (char * options, | |||
489 | return 0; | 494 | return 0; |
490 | } | 495 | } |
491 | } | 496 | } |
492 | sbi->s_mount_opt |= kind; | ||
493 | return 1; | 497 | return 1; |
494 | } | 498 | } |
495 | 499 | ||
@@ -715,6 +719,8 @@ static int ext2_fill_super(struct super_block *sb, void *data, int silent) | |||
715 | set_opt(sbi->s_mount_opt, ERRORS_PANIC); | 719 | set_opt(sbi->s_mount_opt, ERRORS_PANIC); |
716 | else if (le16_to_cpu(sbi->s_es->s_errors) == EXT2_ERRORS_RO) | 720 | else if (le16_to_cpu(sbi->s_es->s_errors) == EXT2_ERRORS_RO) |
717 | set_opt(sbi->s_mount_opt, ERRORS_RO); | 721 | set_opt(sbi->s_mount_opt, ERRORS_RO); |
722 | else | ||
723 | set_opt(sbi->s_mount_opt, ERRORS_CONT); | ||
718 | 724 | ||
719 | sbi->s_resuid = le16_to_cpu(es->s_def_resuid); | 725 | sbi->s_resuid = le16_to_cpu(es->s_def_resuid); |
720 | sbi->s_resgid = le16_to_cpu(es->s_def_resgid); | 726 | sbi->s_resgid = le16_to_cpu(es->s_def_resgid); |