]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ext4: enable block_validity by default
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 2 Sep 2014 01:34:09 +0000 (21:34 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 2 Sep 2014 01:34:09 +0000 (21:34 -0400)
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>
fs/ext4/super.c

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