mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
block: Document the bio splitting functions
Since what the bio splitting functions do is nontrivial, document these functions. Reviewed-by: Johannes Thumshirn <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Ming Lei <[email protected]> Cc: Hannes Reinecke <[email protected]> Signed-off-by: Bart Van Assche <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
af2c68fe94
commit
dad7758459
2 changed files with 45 additions and 2 deletions
|
|
@ -1842,8 +1842,8 @@ EXPORT_SYMBOL(bio_endio);
|
|||
* @bio, and updates @bio to represent the remaining sectors.
|
||||
*
|
||||
* Unless this is a discard request the newly allocated bio will point
|
||||
* to @bio's bi_io_vec; it is the caller's responsibility to ensure that
|
||||
* @bio is not freed before the split.
|
||||
* to @bio's bi_io_vec. It is the caller's responsibility to ensure that
|
||||
* neither @bio nor @bs are freed before the split bio.
|
||||
*/
|
||||
struct bio *bio_split(struct bio *bio, int sectors,
|
||||
gfp_t gfp, struct bio_set *bs)
|
||||
|
|
|
|||
Loading…
Reference in a new issue