Re: [PATCH v3] fuse: fix premature writetrhough request for large folio
From: Miklos Szeredi
Date: Fri Feb 27 2026 - 10:24:03 EST
On Thu, 15 Jan 2026 at 03:36, Jingbo Xu <jefflexu@xxxxxxxxxxxxxxxxx> wrote:
>
> When large folio is enabled and the initial folio offset exceeds
> PAGE_SIZE, e.g. the position resides in the second page of a large
> folio, after the folio copying the offset (in the page) won't be updated
> to 0 even though the expected range is successfully copied until the end
> of the folio. In this case fuse_fill_write_pages() exits prematurelly
> before the request has reached the max_write/max_pages limit.
>
> Fix this by eliminating page offset entirely and use folio offset
> instead.
>
> Fixes: d60a6015e1a2 ("fuse: support large folios for writethrough writes")
> Reviewed-by: Horst Birthelmer <hbirthelmer@xxxxxxx>
> Reviewed-by: Joanne Koong <joannelkoong@xxxxxxxxx>
> Signed-off-by: Jingbo Xu <jefflexu@xxxxxxxxxxxxxxxxx>
Applied, thanks.
Miklos