aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4
diff options
context:
space:
mode:
authorDmitry Monakhov <dmonakhov@openvz.org>2015-10-18 23:35:32 -0400
committerTheodore Ts'o <tytso@mit.edu>2015-10-18 23:35:32 -0400
commitc93cf2d75779d73376e84e2547de1304113d3f1c (patch)
tree7dd12c179cc8b684c365c8c55428c9e83462a748 /fs/ext4
parent4327ba52afd03fc4b5afa0ee1d774c9c5b0e85c5 (diff)
ext4: explicit mount options parsing cleanup
Currently MOPT_EXPLICIT treated as EXPLICIT_DELALLOC which may be changed in future. Let's fix it now. Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4')
-rw-r--r--fs/ext4/super.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 639613fe20aa..db4be39a8db7 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -1516,8 +1516,12 @@ static int handle_mount_opt(struct super_block *sb, char *opt, int token,
1516 return -1; 1516 return -1;
1517 if (args->from && (m->flags & MOPT_GTE0) && (arg < 0)) 1517 if (args->from && (m->flags & MOPT_GTE0) && (arg < 0))
1518 return -1; 1518 return -1;
1519 if (m->flags & MOPT_EXPLICIT) 1519 if (m->flags & MOPT_EXPLICIT) {
1520 set_opt2(sb, EXPLICIT_DELALLOC); 1520 if (m->mount_opt & EXT4_MOUNT_DELALLOC) {
1521 set_opt2(sb, EXPLICIT_DELALLOC);
1522 } else
1523 return -1;
1524 }
1521 if (m->flags & MOPT_CLEAR_ERR) 1525 if (m->flags & MOPT_CLEAR_ERR)
1522 clear_opt(sb, ERRORS_MASK); 1526 clear_opt(sb, ERRORS_MASK);
1523 if (token == Opt_noquota && sb_any_quota_loaded(sb)) { 1527 if (token == Opt_noquota && sb_any_quota_loaded(sb)) {