Re: [PATCH v2 1/4] NFSD/blocklayout: Fix minlength check in proc_layoutget

From: Christoph Hellwig
Date: Fri Oct 03 2025 - 02:54:58 EST


On Thu, Oct 02, 2025 at 11:31:11PM +0300, Sergey Bashirov wrote:
> Minor fix as part of the functional changes. The extent returned by

I'd drop the first sentence here.

> the file system may have a smaller offset than the segment offset
> requested by the client. In this case, the minimum segment length
> must be checked against the requested range. Otherwise, the client
> may not be able to continue the read/write operation.
>
> Signed-off-by: Sergey Bashirov <sergeybashirov@xxxxxxxxx>

Can you add a Fixes: tag here?

Otherwise looks good:

Reviewed-by: Christoph Hellwig <hch@xxxxxx>