block: don't bother iter advancing a fully done bio
authorJens Axboe <axboe@kernel.dk>
Wed, 13 Oct 2021 15:01:43 +0000 (09:01 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Oct 2021 14:50:16 +0000 (08:50 -0600)
commitd4aa57a1cac3c99ffd641f7c8e0a7aff5656de0d
tree434e38cd9f183519566c44b20cea3b4bcc8795f2
parented6cddefdfd361af23a25bdeaaa5e345ac714c38
block: don't bother iter advancing a fully done bio

If we're completing nbytes and nbytes is the size of the bio, don't bother
with calling into the iterator increment helpers. Just clear the bio
size and we're done.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c
include/linux/bio.h