OSDN Git Service

block: add a missing BIOVEC_SEG_BOUNDARY check in bio_add_pc_page
authorChristoph Hellwig <hch@lst.de>
Mon, 24 Sep 2018 07:43:51 +0000 (09:43 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 24 Sep 2018 18:33:55 +0000 (12:33 -0600)
commit0e253391a970300fe4ae69d0c1d1ab494eb07508
tree4e0ad99680b8d33264620666fc55092140ccba8e
parent6a9f5f240adfdced863a098d34f8f05ca6ab9d5f
block: add a missing BIOVEC_SEG_BOUNDARY check in bio_add_pc_page

The actual recaculation of segments in __blk_recalc_rq_segments will
do this check, so there is no point in forcing it if we know it won't
succeed.

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