diff options
author | Nikanth Karthikesan <knikanth@novell.com> | 2010-03-05 21:32:27 -0500 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2010-03-05 21:32:27 -0500 |
commit | 8215d6ec5fee1e76545decea2cd73717efb5cb42 (patch) | |
tree | 54ed2c995c3b91417def0ad31368e3094f72bd81 /drivers/md/dm-table.c | |
parent | 0f3649a9e305ea22eb196a84a2d7520afcaa6060 (diff) |
dm table: remove unused dm_get_device range parameters
Remove unused parameters(start and len) of dm_get_device()
and fix the callers.
Signed-off-by: Nikanth Karthikesan <knikanth@suse.de>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm-table.c')
-rw-r--r-- | drivers/md/dm-table.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c index 7d70cca585ac..9924ea23032d 100644 --- a/drivers/md/dm-table.c +++ b/drivers/md/dm-table.c | |||
@@ -429,8 +429,7 @@ static int upgrade_mode(struct dm_dev_internal *dd, fmode_t new_mode, | |||
429 | * it's already present. | 429 | * it's already present. |
430 | */ | 430 | */ |
431 | static int __table_get_device(struct dm_table *t, struct dm_target *ti, | 431 | static int __table_get_device(struct dm_table *t, struct dm_target *ti, |
432 | const char *path, sector_t start, sector_t len, | 432 | const char *path, fmode_t mode, struct dm_dev **result) |
433 | fmode_t mode, struct dm_dev **result) | ||
434 | { | 433 | { |
435 | int r; | 434 | int r; |
436 | dev_t uninitialized_var(dev); | 435 | dev_t uninitialized_var(dev); |
@@ -527,11 +526,10 @@ int dm_set_device_limits(struct dm_target *ti, struct dm_dev *dev, | |||
527 | } | 526 | } |
528 | EXPORT_SYMBOL_GPL(dm_set_device_limits); | 527 | EXPORT_SYMBOL_GPL(dm_set_device_limits); |
529 | 528 | ||
530 | int dm_get_device(struct dm_target *ti, const char *path, sector_t start, | 529 | int dm_get_device(struct dm_target *ti, const char *path, fmode_t mode, |
531 | sector_t len, fmode_t mode, struct dm_dev **result) | 530 | struct dm_dev **result) |
532 | { | 531 | { |
533 | return __table_get_device(ti->table, ti, path, | 532 | return __table_get_device(ti->table, ti, path, mode, result); |
534 | start, len, mode, result); | ||
535 | } | 533 | } |
536 | 534 | ||
537 | 535 | ||