Skip to content

Commit 1a3e9e8

Browse files
LiBaokun96tytso
authored andcommitted
ext4: support verifying data from large folios with fs-verity
Eric Biggers already added support for verifying data from large folios several years ago in commit 5d0f0e5 ("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>
1 parent 58fd191 commit 1a3e9e8

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

fs/ext4/inode.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5154,8 +5154,6 @@ static bool ext4_should_enable_large_folio(struct inode *inode)
51545154

51555155
if (!S_ISREG(inode->i_mode))
51565156
return false;
5157-
if (ext4_has_feature_verity(sb))
5158-
return false;
51595157
if (ext4_has_feature_encrypt(sb))
51605158
return false;
51615159

0 commit comments

Comments
 (0)