sys/dev/disk/dm: Add dm_alloc_string()
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Mon, 9 Nov 2015 09:56:38 +0000 (18:56 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Mon, 9 Nov 2015 11:08:59 +0000 (20:08 +0900)
commit1849c72c6fecef60ca1df44346a6ed07cce6d6ca
tree703cb1d5b58fadac9ae318f0570eb55aef89d5d0
parent89eaa13cd058829b2093afea61f40e3202718e09
sys/dev/disk/dm: Add dm_alloc_string()

Add dm_alloc_string() which kmallocs char* from M_DM.

It was confusing that targets had to use M_DM for status
purpose while targets had their own M_DMXXX. Using this
wrapper function makes target code less error prone when
allocating a string without an extra comment on usage.
sys/dev/disk/dm/device-mapper.c
sys/dev/disk/dm/dm.h
sys/dev/disk/dm/targets/crypt/dm_target_crypt.c
sys/dev/disk/dm/targets/delay/dm_target_delay.c
sys/dev/disk/dm/targets/linear/dm_target_linear.c
sys/dev/disk/dm/targets/snapshot/dm_target_snapshot.c
sys/dev/disk/dm/targets/striped/dm_target_striped.c