git: sys/vfs/hammer: Don't return 0 on invalid elm.leaf.base.btype

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Fri Sep 4 10:57:30 PDT 2015


commit c9d1310c28c27381e0120c9401b2976ea0add1b7
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Tue Aug 25 04:24:24 2015 +0900

    sys/vfs/hammer: Don't return 0 on invalid elm.leaf.base.btype
    
    A leaf node only has records without any boundary elm,
    so btype is always RECORD, anything else is invalid.
    
    (There used to be several other types that no longer
    exist that could be set to elm.leaf.base.btype)

Summary of changes:
 sys/vfs/hammer/hammer_btree.c   | 2 +-
 sys/vfs/hammer/hammer_reblock.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list