27 lines
832 B
Plaintext
27 lines
832 B
Plaintext
|
From: Jeff Mahoney <jeffm@suse.com>
|
||
|
Subject: dmraid45: dm_get_device takes fewer arguments
|
||
|
Patch-mainline: Whenever dmraid45 is
|
||
|
|
||
|
With 2.6.34-rc1, dm_get_device takes 4 args instead of 6.
|
||
|
|
||
|
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
|
||
|
Acked-by: Jeff Mahoney <jeffm@suse.com>
|
||
|
---
|
||
|
drivers/md/dm-raid45.c | 5 ++---
|
||
|
1 file changed, 2 insertions(+), 3 deletions(-)
|
||
|
|
||
|
--- a/drivers/md/dm-raid45.c
|
||
|
+++ b/drivers/md/dm-raid45.c
|
||
|
@@ -3588,9 +3588,8 @@ dev_parms(struct dm_target *ti, struct r
|
||
|
TI_ERR("Invalid RAID device offset parameter");
|
||
|
|
||
|
dev->start = tmp;
|
||
|
- r = dm_get_device(ti, argv[0], dev->start,
|
||
|
- rs->set.sectors_per_dev,
|
||
|
- dm_table_get_mode(ti->table), &dev->dev);
|
||
|
+ r = dm_get_device(ti, argv[0], dm_table_get_mode(ti->table),
|
||
|
+ &dev->dev);
|
||
|
if (r)
|
||
|
TI_ERR_RET("RAID device lookup failure", r);
|
||
|
|