]> git.ipfire.org Git - thirdparty/linux.git/commit
lib/freader: support reading more than 2 folios
authorMykyta Yatsenko <yatsenko@meta.com>
Sun, 26 Oct 2025 20:38:47 +0000 (20:38 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 27 Oct 2025 16:56:27 +0000 (09:56 -0700)
commit5a5fff604fa30a581197dca4204c35539fbedddb
tree4775d0d03cc26e0a1e62f58f46172cab4d958af0
parent76e4fed847124690f7344a43d01dbcd7b2925353
lib/freader: support reading more than 2 folios

freader_fetch currently reads from at most two folios. When a read spans
into a third folio, the overflow bytes are copied adjacent to the second
folio’s data instead of being handled as a separate folio.
This patch modifies fetch algorithm to support reading from many folios.

Signed-off-by: Mykyta Yatsenko <yatsenko@meta.com>
Reviewed-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20251026203853.135105-5-mykyta.yatsenko5@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
lib/buildid.c