dm-flakey.c (fd7c092e711ebab55b2688d3859d95dfd0301f73) | dm-flakey.c (55a62eef8d1b50ceff3b7bf46851103bdcc7e5b0) |
---|---|
1/* 2 * Copyright (C) 2003 Sistina Software (UK) Limited. 3 * Copyright (C) 2004, 2010-2011 Red Hat, Inc. All rights reserved. 4 * 5 * This file is released under the GPL. 6 */ 7 8#include <linux/device-mapper.h> --- 202 unchanged lines hidden (view full) --- 211 if (r) 212 goto bad; 213 214 if (dm_get_device(ti, devname, dm_table_get_mode(ti->table), &fc->dev)) { 215 ti->error = "Device lookup failed"; 216 goto bad; 217 } 218 | 1/* 2 * Copyright (C) 2003 Sistina Software (UK) Limited. 3 * Copyright (C) 2004, 2010-2011 Red Hat, Inc. All rights reserved. 4 * 5 * This file is released under the GPL. 6 */ 7 8#include <linux/device-mapper.h> --- 202 unchanged lines hidden (view full) --- 211 if (r) 212 goto bad; 213 214 if (dm_get_device(ti, devname, dm_table_get_mode(ti->table), &fc->dev)) { 215 ti->error = "Device lookup failed"; 216 goto bad; 217 } 218 |
219 ti->num_flush_requests = 1; 220 ti->num_discard_requests = 1; | 219 ti->num_flush_bios = 1; 220 ti->num_discard_bios = 1; |
221 ti->per_bio_data_size = sizeof(struct per_bio_data); 222 ti->private = fc; 223 return 0; 224 225bad: 226 kfree(fc); 227 return -EINVAL; 228} --- 218 unchanged lines hidden --- | 221 ti->per_bio_data_size = sizeof(struct per_bio_data); 222 ti->private = fc; 223 return 0; 224 225bad: 226 kfree(fc); 227 return -EINVAL; 228} --- 218 unchanged lines hidden --- |