dm array: add dm_array_new()
authorJoe Thornber <ejt@redhat.com>
Thu, 15 Sep 2016 12:45:44 +0000 (08:45 -0400)
committerMike Snitzer <snitzer@redhat.com>
Thu, 22 Sep 2016 15:12:23 +0000 (11:12 -0400)
commitdd6a77d99859ab963503e67372ed278fe8ceab26
tree8cf6068e462644ecb1cbbd91c5abf3fd570fa887
parentb88efd43f900d608560211a18a38d450f8192948
dm array: add dm_array_new()

dm_array_new() creates a new, populated array more efficiently than
starting with an empty one and resizing.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/persistent-data/dm-array.c
drivers/md/persistent-data/dm-array.h