Re: [PATCH] fs: shorten I/O that would extend past the maximum file offset
From: Paul Eggert
Date: Fri Nov 20 2026 - 16:54:29 EST
On 2026-11-20 12:46, Matteo Croce wrote:
I can extend rw_clamp_count() to shorten the count so the range ends
at 2^64 - 1 for these files too, so that the behaviour is the same at
both limits. In practice none of these files has data near 2^64, so it
would only be for consistency. I'll do it in v2 if you think it's
worth it.
I think it's worth it, for consistency and clarity. (And even it's not worth it, there should be a v2 with a comment summarizing the explanation of why the code is inconsistent....)