git: sys/dev/disk/dm: Make init/destroy handlers optional

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Sun Nov 27 01:17:09 PST 2016


commit 19bd59e4a136d9f93320462c0b42eae5b3e97dd3
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Sun Nov 27 14:35:27 2016 +0900

    sys/dev/disk/dm: Make init/destroy handlers optional
    
    Some targets don't need to do anything in init/destroy handler,
    as there is no private data to init/cleanup, so make them optional.
    
    table_en->target_config can be set to NULL regardless of destroy
    handler or its result.

Summary of changes:
 sys/dev/disk/dm/dm.h              |  9 +--------
 sys/dev/disk/dm/dm_ioctl.c        |  7 ++++---
 sys/dev/disk/dm/dm_table.c        |  5 +++--
 sys/dev/disk/dm/dm_target.c       |  8 --------
 sys/dev/disk/dm/dm_target_error.c | 16 ----------------
 sys/dev/disk/dm/dm_target_zero.c  | 19 -------------------
 6 files changed, 8 insertions(+), 56 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/19bd59e4a136d9f93320462c0b42eae5b3e97dd3


-- 
DragonFly BSD source repository



More information about the Commits mailing list