diff options
Diffstat (limited to 'drivers/md/dm-io.c')
-rw-r--r-- | drivers/md/dm-io.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/md/dm-io.c b/drivers/md/dm-io.c index ea5dd289fe2a..1c46f97d6664 100644 --- a/drivers/md/dm-io.c +++ b/drivers/md/dm-io.c | |||
@@ -249,16 +249,6 @@ static void vm_dp_init(struct dpages *dp, void *data) | |||
249 | dp->context_ptr = data; | 249 | dp->context_ptr = data; |
250 | } | 250 | } |
251 | 251 | ||
252 | static void dm_bio_destructor(struct bio *bio) | ||
253 | { | ||
254 | unsigned region; | ||
255 | struct io *io; | ||
256 | |||
257 | retrieve_io_and_region_from_bio(bio, &io, ®ion); | ||
258 | |||
259 | bio_free(bio, io->client->bios); | ||
260 | } | ||
261 | |||
262 | /* | 252 | /* |
263 | * Functions for getting the pages from kernel memory. | 253 | * Functions for getting the pages from kernel memory. |
264 | */ | 254 | */ |
@@ -317,7 +307,6 @@ static void do_region(int rw, unsigned region, struct dm_io_region *where, | |||
317 | bio->bi_sector = where->sector + (where->count - remaining); | 307 | bio->bi_sector = where->sector + (where->count - remaining); |
318 | bio->bi_bdev = where->bdev; | 308 | bio->bi_bdev = where->bdev; |
319 | bio->bi_end_io = endio; | 309 | bio->bi_end_io = endio; |
320 | bio->bi_destructor = dm_bio_destructor; | ||
321 | store_io_and_region_in_bio(bio, io, region); | 310 | store_io_and_region_in_bio(bio, io, region); |
322 | 311 | ||
323 | if (rw & REQ_DISCARD) { | 312 | if (rw & REQ_DISCARD) { |