mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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 <[email protected]> Reviewed-by: Ming Lei <[email protected]> Signed-off-by: NeilBrown <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
5a136fdf5a
commit
9b10f6a9c2
5 changed files with 6 additions and 11 deletions
|
|
@ -632,7 +632,7 @@ to i/o submission, if the bio fields are likely to be accessed after the
|
|||
i/o is issued (since the bio may otherwise get freed in case i/o completion
|
||||
happens in the meantime).
|
||||
|
||||
The bio_clone() routine may be used to duplicate a bio, where the clone
|
||||
The bio_clone_fast() routine may be used to duplicate a bio, where the clone
|
||||
shares the bio_vec_list with the original bio (i.e. both point to the
|
||||
same bio_vec_list). This would typically be used for splitting i/o requests
|
||||
in lvm or md.
|
||||
|
|
|
|||
Loading…
Reference in a new issue