git: sys/dev/disk/dm: Fix/refactor alloc/free functions [2/6]

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Thu Nov 12 07:09:35 PST 2015


commit 12f3b163908bb447169857cd09d6e631fcf9a78e
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Tue Nov 10 20:50:13 2015 +0900

    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.

Summary of changes:
 sys/dev/disk/dm/dm.h       |  4 ++-
 sys/dev/disk/dm/dm_dev.c   | 75 +++++++++++++++++++++++-----------------------
 sys/dev/disk/dm/dm_ioctl.c |  2 +-
 3 files changed, 41 insertions(+), 40 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/12f3b163908bb447169857cd09d6e631fcf9a78e


-- 
DragonFly BSD source repository



More information about the Commits mailing list