Re: [PATCH] netfs: Fix netfs_read_gaps() to use separate sink folios

From: Paulo Alcantara

Date: Mon Sep 14 2026 - 12:30:35 EST


David Howells <dhowells@xxxxxxxxxx> writes:

>
> Fix netfs_read_gaps() to use separate folios rather than re-using a single
> sink folio to discard the unwanted data so that cifs checksum checking sees
> all the data that was fetched.
>
> Fixes: 7f84a7b9892d ("netfs: Make netfs_read_folio() handle streaming-write pages")
> Reported-by: Frank Sorenson <sorenson@xxxxxxxxxx>
> Closes: https://lore.kernel.org/r/a385053c-1c4a-4060-a3bb-befa007ddb33@xxxxxxxxxx/
> Signed-off-by: David Howells <dhowells@xxxxxxxxxx>
> Tested-by: Frank Sorenson <sorenson@xxxxxxxxxx>
> cc: Paulo Alcantara <pc@xxxxxxxxxxxxx>
> cc: Namjae Jeon <linkinjeon@xxxxxxxxxx>
> cc: netfs@xxxxxxxxxxxxxxx
> cc: linux-cifs@xxxxxxxxxxxxxxx
> cc: linux-fsdevel@xxxxxxxxxxxxxxx

Reviewed-by: Paulo Alcantara <pc@xxxxxxxxxxxxx>