Junichi Nomura 997782735c dm: remove nr_iovecs parameter from alloc_tio()
alloc_tio() uses bio_alloc_bioset() to allocate a clone-bio for a bio.
alloc_tio() takes the number of bvecs to allocate for the clone-bio.
However, with v3.14's immutable biovec changes DM now uses
__bio_clone_fast() and no longer needs to allocate bvecs.

In practice, the 'nr_iovecs' passed to alloc_tio() is always effectively
0.  __clone_and_map_simple_bio() looked like it was passing non-zero
nr_iovecs, but its value was always within the range of inline bvecs and
no allocation actually happened.  If allocation happened, the BUG_ON() in
__bio_clone_fast() would've triggered.

Remove the nr_iovecs parameter from alloc_tio() to prevent possible
future bio_alloc_bioset() mis-use of a new bioset interface that will no
longer allow bvecs to be allocated.

Also fix extra whitespace before the __bio_clone_fast() call in
__clone_and_map_simple_bio().

Signed-off-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
2014-10-05 20:03:34 -04:00
..
2014-09-15 16:20:56 -07:00
2014-08-08 11:14:29 -07:00
2014-08-06 20:06:14 -07:00
2014-09-04 19:59:42 +02:00
2014-08-15 17:06:40 -04:00
2014-08-04 18:36:12 -07:00
2014-08-08 15:57:28 -07:00
2014-09-06 12:12:09 -07:00
2014-09-03 08:45:48 -07:00
2014-08-08 11:14:29 -07:00
2014-08-25 15:39:22 -04:00
2014-09-08 16:33:56 -07:00
2014-09-11 15:08:14 -07:00
2014-09-11 16:52:29 -07:00
2014-08-04 18:34:04 -07:00