git: sys/vfs/hammer: Properly access node element base

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


commit d10e759b1ba6092a153a4b4eb03d81b87c89c7ce
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Tue Aug 25 01:53:41 2015 +0900

    sys/vfs/hammer: Properly access node element base
    
    elm should dereference leaf.base instead of internal.base
    since the node that contains node elm here is a leaf node.
    These two refer to the same address, but the leaf.base is
    the right one in terms of code.
    
    Also print elm->leaf.base.btype which is always expected
    to be 'R'.

Summary of changes:
 sys/vfs/hammer/hammer_btree.c | 22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list