]> Gentwo Git Trees - linux/.git/commitdiff
ext4: support verifying data from large folios with fs-verity
authorBaokun Li <libaokun1@huawei.com>
Fri, 21 Nov 2025 09:06:52 +0000 (17:06 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 29 Nov 2025 03:35:28 +0000 (22:35 -0500)
Eric Biggers already added support for verifying data from large folios
several years ago in commit 5d0f0e57ed90 ("fsverity: support verifying
data from large folios").

With ext4 now supporting large block sizes, the fs-verity tests
`kvm-xfstests -c ext4/64k -g verity -x encrypt` pass without issues.

Therefore, remove the restriction and allow large folios to be enabled
together with fs-verity.

Cc: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Baokun Li <libaokun1@huawei.com>
Reviewed-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Ojaswin Mujoo <ojaswin@linux.ibm.com>
Message-ID: <20251121090654.631996-23-libaokun@huaweicloud.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/inode.c

index 1eab837e47c56e4e17955db081444559ed88785d..a566469ae07a5af8721c7dfe97a9963e1cd06e49 100644 (file)
@@ -5154,8 +5154,6 @@ static bool ext4_should_enable_large_folio(struct inode *inode)
 
        if (!S_ISREG(inode->i_mode))
                return false;
-       if (ext4_has_feature_verity(sb))
-               return false;
        if (ext4_has_feature_encrypt(sb))
                return false;