]> git.baikalelectronics.ru Git - kernel.git/commit
block: optimize bvec iteration in bvec_iter_advance
authorChristoph Hellwig <hch@lst.de>
Thu, 28 Feb 2019 16:00:18 +0000 (11:00 -0500)
committerJens Axboe <axboe@kernel.dk>
Thu, 28 Feb 2019 20:49:22 +0000 (13:49 -0700)
commit63135040b33eb6ec38433f6189d38744e450cc38
tree9b4eb6248df2e42fa08c1138fa0c0ca49d48f35b
parentf1aa15d14b5dc4fc5368cac04fd82bcf30b77a48
block: optimize bvec iteration in bvec_iter_advance

There is no need to only iterate in chunks of PAGE_SIZE or less in
bvec_iter_advance, given that the callers pass in the chunk length that
they are operating on - either that already is less than PAGE_SIZE
because they do classic page-based iteration, or it is larger because
the caller operates on multi-page bvecs.

This should help shaving off a few cycles of the I/O hot path.

Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/bvec.h