]> Gentwo Git Trees - linux/.git/commit
iomap: simplify direct io validity check
authorKeith Busch <kbusch@kernel.org>
Wed, 27 Aug 2025 14:12:55 +0000 (07:12 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 9 Sep 2025 16:27:01 +0000 (10:27 -0600)
commit7eac331869575d81eaa2dd68b19e7468f8fa93cb
tree01128b3a511391570a2967610a321ca0195bf769
parent5ff3f74e145adc79b49668adb8de276446acf6be
iomap: simplify direct io validity check

The block layer checks all the segments for validity later, so no need
for an early check. Just reduce it to a simple position and total length
check, and defer the more invasive segment checks to the block layer.

Signed-off-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/iomap/direct-io.c