]> git.baikalelectronics.ru Git - kernel.git/commit
iov_iter: optimise bvec iov_iter_advance()
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 9 Jan 2021 16:03:01 +0000 (16:03 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Jan 2021 15:58:24 +0000 (08:58 -0700)
commitef956148ca15f9895d180393c81fff95594b4b64
treeda5174573c5b40de7e1e43d1ca65a75d1fcf0ed3
parent3945b7a915519f8fdacf5879a38c6c8901d4a7ff
iov_iter: optimise bvec iov_iter_advance()

iov_iter_advance() is heavily used, but implemented through generic
means. For bvecs there is a specifically crafted function for that, so
use bvec_iter_advance() instead, it's faster and slimmer.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
lib/iov_iter.c