Re: [PATCH] fs: shorten I/O that would extend past the maximum file offset

From: Paul Eggert

Date: Fri Nov 20 2026 - 15:03:40 EST


On 2026-11-20 10:42, Matteo Croce wrote:
+ if (file->f_op->fop_flags & FOP_UNSIGNED_OFFSET)
+ return count;

This means there's still a problem when reading past the maximum file offset of /dev/mem and other files with FOP_UNSIGNED_OFFSET, right? If FOP_UNSIGNED_OFFSET is set, are the file's own read/write methods expected to shorten I/O requests in this situation?

Thanks for looking into this, by the way.