block: move same page handling from __bio_add_pc_page to the callers
authorChristoph Hellwig <hch@lst.de>
Mon, 12 Aug 2019 15:39:58 +0000 (17:39 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 22 Aug 2019 13:14:39 +0000 (07:14 -0600)
commitd1916c86ccdcb67996278a850a22762102702d85
tree24d9a2a725af37c66a3b579d95b054fe374d0f1e
parent384209cd5b93a926321fafe880ed05b1bca97260
block: move same page handling from __bio_add_pc_page to the callers

Hiding page refcount manipulation inside a low-level bio helper is
somewhat awkward.  Instead return the same page information to the
callers, where it fits in much better.

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