[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20251128083219.2332407-6-zhangshida@kylinos.cn>
Date: Fri, 28 Nov 2025 16:32:12 +0800
From: zhangshida <starzhangzsd@...il.com>
To: Johannes.Thumshirn@....com,
hch@...radead.org,
gruenba@...hat.com,
ming.lei@...hat.com,
siangkao@...ux.alibaba.com
Cc: linux-block@...r.kernel.org,
linux-bcache@...r.kernel.org,
nvdimm@...ts.linux.dev,
virtualization@...ts.linux.dev,
linux-nvme@...ts.infradead.org,
gfs2@...ts.linux.dev,
ntfs3@...ts.linux.dev,
linux-xfs@...r.kernel.org,
linux-kernel@...r.kernel.org,
zhangshida@...inos.cn,
starzhangzsd@...il.com
Subject: [PATCH v2 05/12] block: export bio_chain_and_submit
From: Shida Zhang <zhangshida@...inos.cn>
Export the bio_chain_and_submit function to make it available as a
common utility. This will allow replacing repetitive bio chaining
patterns found in multiple locations throughout the codebase.
Signed-off-by: Shida Zhang <zhangshida@...inos.cn>
---
block/bio.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/block/bio.c b/block/bio.c
index 2473a2c0d2f..6102e2577cb 100644
--- a/block/bio.c
+++ b/block/bio.c
@@ -371,6 +371,7 @@ struct bio *bio_chain_and_submit(struct bio *prev, struct bio *new)
}
return new;
}
+EXPORT_SYMBOL_GPL(bio_chain_and_submit);
struct bio *blk_next_bio(struct bio *bio, struct block_device *bdev,
unsigned int nr_pages, blk_opf_t opf, gfp_t gfp)
--
2.34.1
Powered by blists - more mailing lists