diff options
author | Theodore Ts'o <tytso@mit.edu> | 2012-03-03 22:56:23 (GMT) |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2012-03-03 22:56:23 (GMT) |
commit | 39ef17f1b0613b46c6973596525c2bc816d90b5b (patch) | |
tree | c07e2dcd3cd21d7d5db0203263e5efae63a02729 /fs/ext4/super.c | |
parent | c64db50e76c4bf68c0a84379d7bd70daada531b4 (diff) | |
download | linux-39ef17f1b0613b46c6973596525c2bc816d90b5b.tar.xz |
ext4: simplify handling of the errors=* mount options
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r-- | fs/ext4/super.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 6b27bc6..93cca1f 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -1565,18 +1565,15 @@ static int parse_options(char *options, struct super_block *sb, /* *sb_block = match_int(&args[0]); */ break; case Opt_err_panic: - clear_opt(sb, ERRORS_CONT); - clear_opt(sb, ERRORS_RO); + clear_opt(sb, ERRORS_MASK); set_opt(sb, ERRORS_PANIC); break; case Opt_err_ro: - clear_opt(sb, ERRORS_CONT); - clear_opt(sb, ERRORS_PANIC); + clear_opt(sb, ERRORS_MASK); set_opt(sb, ERRORS_RO); break; case Opt_err_cont: - clear_opt(sb, ERRORS_RO); - clear_opt(sb, ERRORS_PANIC); + clear_opt(sb, ERRORS_MASK); set_opt(sb, ERRORS_CONT); break; case Opt_nouid32: |