git: sys/vfs/hammer: Remove duplicated vfs code

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Mon Aug 17 09:06:33 PDT 2015


commit deabdbfb46b4b6d2e766d83ec8fb97958fedc38b
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Sun Aug 16 14:05:55 2015 +0900

    sys/vfs/hammer: Remove duplicated vfs code
    
    Much of the code in sys/vfs/hammer/hammer_volume.c is taken
    from the existing code, and some of them could be integrated
    into mainstream hammer code. This commit does that without
    messing up interface or making functional changes.
    
    This greatly reduces and simplifies code, and also gets rid
    of extra (and unnecessary) vfs open/close operations that
    existed only to initialize or erase volume header while in
    kernel space on ioctl.

Summary of changes:
 sys/vfs/hammer/hammer.h        |   4 +-
 sys/vfs/hammer/hammer_ondisk.c |  45 +++++++++-
 sys/vfs/hammer/hammer_vfsops.c |   2 +-
 sys/vfs/hammer/hammer_volume.c | 182 ++++-------------------------------------
 4 files changed, 58 insertions(+), 175 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/deabdbfb46b4b6d2e766d83ec8fb97958fedc38b


-- 
DragonFly BSD source repository



More information about the Commits mailing list