]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1c29dfc15a503ddc41ad9e615adc32d0ec223430
tree434e38cd9f183519566c44b20cea3b4bcc8795f2
parent9c1048fc6fa3e75b85164e0c22d756a7d0418188
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