block: set BIO_NO_PAGE_REF in bio_iov_bvec_set
authorChristoph Hellwig <hch@lst.de>
Tue, 2 Feb 2021 17:19:26 +0000 (18:19 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 8 Feb 2021 15:33:16 +0000 (08:33 -0700)
commited97ce5e1daf26d456760443fc89dc14d2b677e5
treec7a6518ccc5f43cb87a64bf187e1e1e094926d33
parent86004515ed80c01d59ab54b5d048164750af3c4b
block: set BIO_NO_PAGE_REF in bio_iov_bvec_set

bio_iov_bvec_set assigns the foreign bvec, so setting the NO_PAGE_REF
directly there seems like the best fit.

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