Update patches with signed-off-by and review comments
[ext4-patch-queue.git] / enable-block-validity-by-default
blobab3976a9b85068f6b716c20e82210aa47277accc
1 ext4: enable block_validity by default
3 From: "Darrick J. Wong" <darrick.wong@oracle.com>
5 Enable by default the block_validity feature, which checks for
6 collisions between newly allocated blocks and critical system
7 metadata.
9 Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
10 Signed-off-by: Theodore Ts'o <tytso@mit.edu>
11 ---
12  fs/ext4/super.c |    4 ++--
13  1 file changed, 2 insertions(+), 2 deletions(-)
15 diff --git a/fs/ext4/super.c b/fs/ext4/super.c
16 index 0b28b36..bbf515c 100644
17 --- a/fs/ext4/super.c
18 +++ b/fs/ext4/super.c
19 @@ -3519,8 +3519,8 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent)
20                 set_opt(sb, ERRORS_CONT);
21         else
22                 set_opt(sb, ERRORS_RO);
23 -       if (def_mount_opts & EXT4_DEFM_BLOCK_VALIDITY)
24 -               set_opt(sb, BLOCK_VALIDITY);
25 +       /* block_validity enabled by default; disable with noblock_validity */
26 +       set_opt(sb, BLOCK_VALIDITY);
27         if (def_mount_opts & EXT4_DEFM_DISCARD)
28                 set_opt(sb, DISCARD);
31 To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
32 the body of a message to majordomo@vger.kernel.org
33 More majordomo info at  http://vger.kernel.org/majordomo-info.html