Skip to content

Commit 5416090

Browse files
Mikulas Patockakergon
authored andcommitted
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 <[email protected]> Signed-off-by: Alasdair G Kergon <[email protected]>
1 parent ea0ec64 commit 5416090

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

drivers/md/dm.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ void dm_linear_exit(void);
8989
int dm_stripe_init(void);
9090
void dm_stripe_exit(void);
9191

92-
void *dm_vcalloc(unsigned long nmemb, unsigned long elem_size);
9392
int dm_open_count(struct mapped_device *md);
9493
int dm_lock_for_deletion(struct mapped_device *md);
9594

include/linux/device-mapper.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,11 @@ void dm_table_event(struct dm_table *t);
267267
*/
268268
int dm_swap_table(struct mapped_device *md, struct dm_table *t);
269269

270+
/*
271+
* A wrapper around vmalloc.
272+
*/
273+
void *dm_vcalloc(unsigned long nmemb, unsigned long elem_size);
274+
270275
/*-----------------------------------------------------------------
271276
* Macros.
272277
*---------------------------------------------------------------*/

0 commit comments

Comments
 (0)