git: sys/vfs/hammer2: Simplify chain allocation in hammer2_chain_alloc()

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Wed Oct 14 10:09:04 PDT 2020


commit 428dc73dec68fbb23a2d18e7a7ef1048287709a6
Author: Tomohiro Kusumi <tkusumi at netbsd.org>
Date:   Thu Oct 15 00:30:20 2020 +0900

    sys/vfs/hammer2: Simplify chain allocation in hammer2_chain_alloc()
    
    This initially had different behavior depending on blockref type,
    but today all it does is allocate a chain, so just test invalid empty
    blockref case for empty blockref slot and then allocate.

Summary of changes:
 sys/vfs/hammer2/hammer2_chain.c | 30 ++++--------------------------
 1 file changed, 4 insertions(+), 26 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/428dc73dec68fbb23a2d18e7a7ef1048287709a6


-- 
DragonFly BSD source repository


More information about the Commits mailing list