sys/dev/disk/dm: Fix/refactor alloc/free functions [2/6]
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Tue, 10 Nov 2015 11:50:13 +0000 (20:50 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Thu, 12 Nov 2015 14:33:49 +0000 (23:33 +0900)
commit12f3b163908bb447169857cd09d6e631fcf9a78e
treebc640927f66ab4e173e92f96e7d0cb1e48d0a27c
parent733c17c34fde7821192509db93132eda7e6a714a
sys/dev/disk/dm: Fix/refactor alloc/free functions [2/6]

Rename dm_dev_rem() to dm_dev_lookup_evict(). There is
dm_dev_remove(), and having remove()/rem() is confusing.

Refactor dm_dev_lookup()/dm_dev_lookup_evict() using a common
lookup function.

Disable dm_dev_lookup_evict() by #if0. This function is only
used for renaming, but renaming is not implemented.
sys/dev/disk/dm/dm.h
sys/dev/disk/dm/dm_dev.c
sys/dev/disk/dm/dm_ioctl.c