diff options
author | Kent Overstreet <koverstreet@google.com> | 2012-09-05 00:20:38 +0200 |
---|---|---|
committer | Kent Overstreet <koverstreet@google.com> | 2013-03-23 22:15:30 +0100 |
commit | 5b83636ae3c3b4f87d02a5929ad4dee831534db0 (patch) | |
tree | 90b902fe8797c11d4f76d08353e44bbf82a850e1 /fs/buffer.c | |
parent | block: Use bio_sectors() more consistently (diff) | |
download | linux-5b83636ae3c3b4f87d02a5929ad4dee831534db0.tar.xz linux-5b83636ae3c3b4f87d02a5929ad4dee831534db0.zip |
block: Change bio_split() to respect the current value of bi_idx
In the current code bio_split() won't be seeing partially completed bios
so this doesn't change any behaviour, but this makes the code a bit
clearer as to what bio_split() actually requires.
The immediate purpose of the patch is removing unnecessary bi_idx
references, but the end goal is to allow partial completed bios to be
submitted, which along with immutable biovecs enables effecient bio
splitting.
Some of the callers were (double) checking that bios could be split, so
update their checks too.
Signed-off-by: Kent Overstreet <koverstreet@google.com>
CC: Jens Axboe <axboe@kernel.dk>
CC: Lars Ellenberg <drbd-dev@lists.linbit.com>
CC: Neil Brown <neilb@suse.de>
CC: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'fs/buffer.c')
0 files changed, 0 insertions, 0 deletions