From: Kent Overstreet Date: Tue, 11 Feb 2014 01:45:50 +0000 (-0800) Subject: block: Fix cloning of discard/write same bios X-Git-Tag: v3.14-rc3~22^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8423ae3d7a3cfe084865262cfaeba1359d405182;p=pandora-kernel.git block: Fix cloning of discard/write same bios Immutable biovecs changed the way bio segments are treated in such a way that bio_for_each_segment() cannot now do what we want for discard/write same bios, since bi_size means something completely different for them. Fortunately discard and write same bios never have more than a single biovec, so bio_for_each_segment() is unnecessary and not terribly meaningful for them, but we still have to special case them in a few places. Signed-off-by: Kent Overstreet Tested-by: Richard W.M. Jones Signed-off-by: Jens Axboe --- Reading git-diff-tree failed