block: factor out helper for bio allocation from cache
authorKanchan Joshi <joshi.k@samsung.com>
Mon, 20 Dec 2021 14:17:31 +0000 (19:47 +0530)
committerJens Axboe <axboe@kernel.dk>
Tue, 21 Dec 2021 16:38:25 +0000 (09:38 -0700)
commit62ce33ed4c858d2de446f20c5860f6d37c4a3dbb
treec3444110e2f6753a78b026bda3cb2298d08690c5
parent8e523e9167a0c82815c25407be3427ceabafc7c3
block: factor out helper for bio allocation from cache

Factor the code to pull out bio_from_cache helper which is not tied to
kiocb. This is prep patch.

Signed-off-by: Kanchan Joshi <joshi.k@samsung.com>
Link: https://lore.kernel.org/r/20211220141734.12206-11-joshi.k@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c
include/linux/bio.h