git: sys/dev/disk/dm: Fix/refactor TAILQ_HEAD structure

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Sun Nov 8 06:53:40 PST 2015


commit 4e3596722fc3e1ae357acfb89386851d105078c1
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Sun Nov 8 16:41:12 2015 +0900

    sys/dev/disk/dm: Fix/refactor TAILQ_HEAD structure
    
    Some minor fixes.
    
    Initialize TAILQs in init() since they are removed and freed
    in uninit(). Not doing it in init() works only when init() is
    guaranteed to be called once.

Summary of changes:
 sys/dev/disk/dm/dm.h        | 2 --
 sys/dev/disk/dm/dm_dev.c    | 3 +--
 sys/dev/disk/dm/dm_pdev.c   | 2 +-
 sys/dev/disk/dm/dm_target.c | 6 ++----
 4 files changed, 4 insertions(+), 9 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/4e3596722fc3e1ae357acfb89386851d105078c1


-- 
DragonFly BSD source repository


More information about the Commits mailing list