summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorNikanth Karthikesan <knikanth@novell.com>2010-03-06 02:32:27 +0000
committerAlasdair G Kergon <agk@redhat.com>2010-03-06 02:32:27 +0000
commit8215d6ec5fee1e76545decea2cd73717efb5cb42 (patch)
tree54ed2c995c3b91417def0ad31368e3094f72bd81 /include/linux
parent0f3649a9e305ea22eb196a84a2d7520afcaa6060 (diff)
downloadop-kernel-dev-8215d6ec5fee1e76545decea2cd73717efb5cb42.zip
op-kernel-dev-8215d6ec5fee1e76545decea2cd73717efb5cb42.tar.gz
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 'include/linux')
-rw-r--r--include/linux/device-mapper.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/device-mapper.h b/include/linux/device-mapper.h
index d4c9c0b..1381cd9 100644
--- a/include/linux/device-mapper.h
+++ b/include/linux/device-mapper.h
@@ -118,10 +118,9 @@ struct dm_dev {
/*
* Constructors should call these functions to ensure destination devices
* are opened/closed correctly.
- * FIXME: too many arguments.
*/
-int dm_get_device(struct dm_target *ti, const char *path, sector_t start,
- sector_t len, fmode_t mode, struct dm_dev **result);
+int dm_get_device(struct dm_target *ti, const char *path, fmode_t mode,
+ struct dm_dev **result);
void dm_put_device(struct dm_target *ti, struct dm_dev *d);
/*
OpenPOWER on IntegriCloud