summaryrefslogtreecommitdiffstats
path: root/fs/ext4/super.c
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2014-09-01 21:34:09 -0400
committerTheodore Ts'o <tytso@mit.edu>2014-09-01 21:34:09 -0400
commit45f1a9c3f63db3d4562c16062a51740801fbd88c (patch)
tree77218d772b34f923aca5e7f9a49200f9171e99e9 /fs/ext4/super.c
parent88fe1acb5bedfcba5f42fcdf165493ee587ba643 (diff)
downloadop-kernel-dev-45f1a9c3f63db3d4562c16062a51740801fbd88c.zip
op-kernel-dev-45f1a9c3f63db3d4562c16062a51740801fbd88c.tar.gz
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>
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r--fs/ext4/super.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 896e452..7194a51 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -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);
OpenPOWER on IntegriCloud