Re: [PATCH 13/16] squashfs: copy cache entries by folio size

From: Tal Zussman

Date: Tue Nov 03 2026 - 10:18:00 EST




On 11/3/26 8:17 AM, Tal Zussman wrote:
> squashfs_copy_cache() walks the block a page at a time and copies
> PAGE_SIZE into each folio. Walk it a folio at a time instead, and copy
> and zero up to the folio's size. Use the block helpers for the block's
> first and last index.
>
> squashfs only uses order-0 folios, so no functional change. This is a
> step towards enabling large folios.
>
> Signed-off-by: Tal Zussman <tz2294@xxxxxxxxxxxx>
> ---
> fs/squashfs/file.c | 60 ++++++++++++++++++++++++++++++++----------------------
> 1 file changed, 36 insertions(+), 24 deletions(-)
>
Sashiko had two comments about this one. Both of them look real (one
pre-existing bug and one that can't be hit right now but is possible with
large folios), so I'll fix them up for v2.

Thanks,
Tal