Lines Matching full:split
212 * bvec_split_segs - verify whether or not a bvec should be split in the middle
213 * @lim: [in] queue limits to split based on
225 * big to fit in a single segment and hence that it has to be split in the
255 /* tell the caller to split the bvec if it is too big to fit */ in bvec_split_segs()
268 * bio_split_rw - split a bio in two bios
269 * @bio: [in] bio to be split
270 * @lim: [in] queue limits to split based on
285 * split bio has finished.
300 goto split; in bio_split_rw()
310 goto split; in bio_split_rw()
319 split: in bio_split_rw()
334 * split size so that each bio is properly block size aligned, even if in bio_split_rw()
342 * big IO can be trival, disable iopoll when split needed. in bio_split_rw()
350 * __bio_split_to_limits - split a bio to fit the queue limits
351 * @bio: bio to be split
352 * @lim: queue limits to split based on
355 * Check if @bio needs splitting based on the queue limits, and if so split off
359 * The split bio is allocated from @q->bio_split, which is provided by the
367 struct bio *split; in __bio_split_to_limits() local
372 split = bio_split_discard(bio, lim, nr_segs, bs); in __bio_split_to_limits()
375 split = bio_split_write_zeroes(bio, lim, nr_segs, bs); in __bio_split_to_limits()
378 split = bio_split_rw(bio, lim, nr_segs, bs, in __bio_split_to_limits()
380 if (IS_ERR(split)) in __bio_split_to_limits()
385 if (split) { in __bio_split_to_limits()
386 /* there isn't chance to merge the split bio */ in __bio_split_to_limits()
387 split->bi_opf |= REQ_NOMERGE; in __bio_split_to_limits()
389 blkcg_bio_issue_init(split); in __bio_split_to_limits()
390 bio_chain(split, bio); in __bio_split_to_limits()
391 trace_block_split(split, bio->bi_iter.bi_sector); in __bio_split_to_limits()
393 return split; in __bio_split_to_limits()
399 * bio_split_to_limits - split a bio to fit the queue limits
400 * @bio: bio to be split
403 * if so split off a bio fitting the limits from the beginning of @bio and
406 * The split bio is allocated from @q->bio_split, which is provided by the