]> git.baikalelectronics.ru Git - kernel.git/commit
block: refactor __bio_iov_bvec_add_pages
authorChristoph Hellwig <hch@lst.de>
Thu, 11 Apr 2019 06:23:28 +0000 (08:23 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 12 Apr 2019 15:06:37 +0000 (09:06 -0600)
commit546ec7224c52c7008aec32d13651a18ecbb73bf4
tree812ccc3a2f7ea4d998d9c71a60d94a61abe891a2
parent19b8e8a3727956971326a655d44df0ec6828aa3f
block: refactor __bio_iov_bvec_add_pages

Return early on error, and add an unlikely annotation for that case.

Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c