summaryrefslogtreecommitdiffstats
path: root/block/bio.c
diff options
context:
space:
mode:
authorNeilBrown2017-06-18 06:38:59 +0200
committerJens Axboe2017-06-18 20:40:59 +0200
commit9b10f6a9c2aaab49c56b8cff0facdc1b64ed7e1c (patch)
tree13b9e81781e6d44a15dca67215c950ab019f714b /block/bio.c
parentbcache: use kmalloc to allocate bio in bch_data_verify() (diff)
downloadkernel-qcow2-linux-9b10f6a9c2aaab49c56b8cff0facdc1b64ed7e1c.tar.gz
kernel-qcow2-linux-9b10f6a9c2aaab49c56b8cff0facdc1b64ed7e1c.tar.xz
kernel-qcow2-linux-9b10f6a9c2aaab49c56b8cff0facdc1b64ed7e1c.zip
block: remove bio_clone() and all references.
bio_clone() is no longer used. Only bio_clone_bioset() or bio_clone_fast(). This is for the best, as bio_clone() used fs_bio_set, and filesystems are unlikely to want to use bio_clone(). So remove bio_clone() and all references. This includes a fix to some incorrect documentation. Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: NeilBrown <neilb@suse.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/bio.c')
-rw-r--r--block/bio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/bio.c b/block/bio.c
index 2bd064906e06..89a51bd49ab7 100644
--- a/block/bio.c
+++ b/block/bio.c
@@ -547,7 +547,7 @@ EXPORT_SYMBOL(zero_fill_bio);
*
* Description:
* Put a reference to a &struct bio, either one you have gotten with
- * bio_alloc, bio_get or bio_clone. The last put of a bio will free it.
+ * bio_alloc, bio_get or bio_clone_*. The last put of a bio will free it.
**/
void bio_put(struct bio *bio)
{