diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2008-10-10 08:37:12 -0400 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2008-10-10 08:37:12 -0400 |
commit | 54160904260fa764ba6e2dc738770be30fdf9553 (patch) | |
tree | 5f286d4d4c199772b4fc2fea48dfd10c5ef0ecf9 | |
parent | ea0ec640940c2ae3a8d71af3249fccf06a9997a3 (diff) |
dm: publish dm_vcalloc
Publish dm_vcalloc in include/linux/device-mapper.h because this function is
used by targets.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
-rw-r--r-- | drivers/md/dm.h | 1 | ||||
-rw-r--r-- | include/linux/device-mapper.h | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/drivers/md/dm.h b/drivers/md/dm.h index 8812208978e3..cd189da2b2fa 100644 --- a/drivers/md/dm.h +++ b/drivers/md/dm.h | |||
@@ -89,7 +89,6 @@ void dm_linear_exit(void); | |||
89 | int dm_stripe_init(void); | 89 | int dm_stripe_init(void); |
90 | void dm_stripe_exit(void); | 90 | void dm_stripe_exit(void); |
91 | 91 | ||
92 | void *dm_vcalloc(unsigned long nmemb, unsigned long elem_size); | ||
93 | int dm_open_count(struct mapped_device *md); | 92 | int dm_open_count(struct mapped_device *md); |
94 | int dm_lock_for_deletion(struct mapped_device *md); | 93 | int dm_lock_for_deletion(struct mapped_device *md); |
95 | 94 | ||
diff --git a/include/linux/device-mapper.h b/include/linux/device-mapper.h index e462c7f3b391..08d783592b73 100644 --- a/include/linux/device-mapper.h +++ b/include/linux/device-mapper.h | |||
@@ -267,6 +267,11 @@ void dm_table_event(struct dm_table *t); | |||
267 | */ | 267 | */ |
268 | int dm_swap_table(struct mapped_device *md, struct dm_table *t); | 268 | int dm_swap_table(struct mapped_device *md, struct dm_table *t); |
269 | 269 | ||
270 | /* | ||
271 | * A wrapper around vmalloc. | ||
272 | */ | ||
273 | void *dm_vcalloc(unsigned long nmemb, unsigned long elem_size); | ||
274 | |||
270 | /*----------------------------------------------------------------- | 275 | /*----------------------------------------------------------------- |
271 | * Macros. | 276 | * Macros. |
272 | *---------------------------------------------------------------*/ | 277 | *---------------------------------------------------------------*/ |