Re: [PATCH 1/2] mm/filemap: fix miscalculated file range for filemap_fdatawrite_range_kick()
From: Jens Axboe
Date: Wed Feb 19 2025 - 11:28:09 EST
On 2/18/25 5:02 AM, Jingbo Xu wrote:
> iocb->ki_pos has been updated with the number of written bytes since
> generic_perform_write().
>
> Besides __filemap_fdatawrite_range() accepts the inclusive end of the
> data range.
Fix looks good, this got introduced because the logic got moved into
generic_write_sync() rather than being a separate helper.
Reviewed-by: Jens Axboe <axboe@xxxxxxxxx>
--
Jens Axboe