linux/fs/iomap
Gou Hao 8e3c15ee0d
iomap: skip unnecessary ifs_block_is_uptodate check
In iomap_adjust_read_range, i is either the first !uptodate block, or it
is past last for the second loop looking for trailing uptodate blocks.
Assuming there's no overflow (there's no combination of huge folios and
tiny blksize) then yeah, there is no point in retesting that the same
block pointed to by i is uptodate since we hold the folio lock so nobody
else could have set it uptodate.

Signed-off-by: Gou Hao <gouhao@uniontech.com>
Link: https://lore.kernel.org/20250410071236.16017-1-gouhao@uniontech.com
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Suggested-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
2025-04-11 16:02:27 +02:00
..
Makefile iomap: split bios to zone append limits in the submission handlers 2025-02-06 13:02:14 +01:00
buffered-io.c iomap: skip unnecessary ifs_block_is_uptodate check 2025-04-11 16:02:27 +02:00
direct-io.c vfs-6.15-rc1.iomap 2025-03-24 10:19:31 -07:00
fiemap.c iomap: introduce a full map advance helper 2025-02-26 09:42:37 +01:00
internal.h iomap: optionally use ioends for direct I/O 2025-02-06 13:02:14 +01:00
ioend.c iomap: add a io_private field to struct iomap_ioend 2025-02-06 13:02:15 +01:00
iter.c iomap: rename iomap_iter processed field to status 2025-02-26 09:42:37 +01:00
seek.c iomap: rename iomap_iter processed field to status 2025-02-26 09:42:37 +01:00
swapfile.c iomap: introduce a full map advance helper 2025-02-26 09:42:37 +01:00
trace.c iomap: Add DIO tracepoints 2023-04-21 08:54:47 -07:00
trace.h iomap: rework IOMAP atomic flags 2025-03-20 15:16:03 +01:00