dm: publish dm_vcalloc
authorMikulas Patocka <mpatocka@redhat.com>
Fri, 10 Oct 2008 12:37:12 +0000 (13:37 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 10 Oct 2008 12:37:12 +0000 (13:37 +0100)
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>
drivers/md/dm.h
include/linux/device-mapper.h

index 8812208978e3c4223380e37dcbabd29aad068c5a..cd189da2b2fa1fbad7293f152f0744b7bdbb8c35 100644 (file)
@@ -89,7 +89,6 @@ void dm_linear_exit(void);
 int dm_stripe_init(void);
 void dm_stripe_exit(void);
 
-void *dm_vcalloc(unsigned long nmemb, unsigned long elem_size);
 int dm_open_count(struct mapped_device *md);
 int dm_lock_for_deletion(struct mapped_device *md);
 
index e462c7f3b3917d5aa352c03403a418c56a06c86b..08d783592b73ef4ef6bf8f2b03c8b1359ebe5b40 100644 (file)
@@ -267,6 +267,11 @@ void dm_table_event(struct dm_table *t);
  */
 int dm_swap_table(struct mapped_device *md, struct dm_table *t);
 
+/*
+ * A wrapper around vmalloc.
+ */
+void *dm_vcalloc(unsigned long nmemb, unsigned long elem_size);
+
 /*-----------------------------------------------------------------
  * Macros.
  *---------------------------------------------------------------*/