]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fsverity: support verifying data from large folios
authorEric Biggers <ebiggers@google.com>
Fri, 27 Jan 2023 22:15:29 +0000 (14:15 -0800)
committerEric Biggers <ebiggers@google.com>
Fri, 27 Jan 2023 22:46:31 +0000 (14:46 -0800)
commit5d0f0e57ed900917836385527ce5b122fa1425a3
tree2a9dd0ba1351b2783a4febe87e98754e6b8472fe
parent245edf445c3421584f541307cd7a8cd847c3d8d7
fsverity: support verifying data from large folios

Try to make fs/verity/verify.c aware of large folios.  This includes
making fsverity_verify_bio() support the case where the bio contains
large folios, and adding a function fsverity_verify_folio() which is the
equivalent of fsverity_verify_page().

There's no way to actually test this with large folios yet, but I've
tested that this doesn't cause any regressions.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Link: https://lore.kernel.org/r/20230127221529.299560-1-ebiggers@kernel.org
Documentation/filesystems/fsverity.rst
fs/buffer.c
fs/verity/verify.c
include/linux/fsverity.h