]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commita10584c3cda9cbb1a1ccd072783bfd625f99e40d
tree812ccc3a2f7ea4d998d9c71a60d94a61abe891a2
parent8a96a0e408102fb7aa73d8aa0b5e2219cfd51e55
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