ext4: enable block_validity by default

Enable by default the block_validity feature, which checks for
collisions between newly allocated blocks and critical system
metadata.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
This commit is contained in:
Darrick J. Wong 2014-09-01 21:34:09 -04:00 committed by Theodore Ts'o
parent 88fe1acb5b
commit 45f1a9c3f6
1 changed files with 2 additions and 2 deletions

View File

@ -3519,8 +3519,8 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent)
set_opt(sb, ERRORS_CONT); set_opt(sb, ERRORS_CONT);
else else
set_opt(sb, ERRORS_RO); set_opt(sb, ERRORS_RO);
if (def_mount_opts & EXT4_DEFM_BLOCK_VALIDITY) /* block_validity enabled by default; disable with noblock_validity */
set_opt(sb, BLOCK_VALIDITY); set_opt(sb, BLOCK_VALIDITY);
if (def_mount_opts & EXT4_DEFM_DISCARD) if (def_mount_opts & EXT4_DEFM_DISCARD)
set_opt(sb, DISCARD); set_opt(sb, DISCARD);