git: sys/vfs/hammer: Add hammer_btree_extract_data() [2/2]

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Sat Mar 5 03:54:53 PST 2016


commit 40962009f857572107d3bcd4571ba92c2f587725
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Mon Feb 29 00:29:59 2016 +0900

    sys/vfs/hammer: Add hammer_btree_extract_data() [2/2]
    
    This commit replaces
    hammer_btree_extract(cursor, HAMMER_CURSOR_GET_DATA)
    with
    hammer_btree_extract_data(&cursor)
    which are the remaining ones from the previous commit.
    
    From the way hammer_btree_extract_data() is implemented,
    hammer_btree_extract(cursor, HAMMER_CURSOR_GET_DATA)
    is the same as
    hammer_btree_extract(cursor, HAMMER_CURSOR_GET_LEAF | HAMMER_CURSOR_GET_DATA)
    and it probably should have been (LEAF | DATA) instead of just DATA,
    according to the way hammer_get_inode(), hammer_update_inode() and
    hammer_update_itimes() set cursor flag. It's either LEAF or
    (LEAF | DATA), but not just DATA that makes sense on calling
    hammer_btree_extract().

Summary of changes:
 sys/vfs/hammer/hammer_mirror.c | 3 +--
 sys/vfs/hammer/hammer_object.c | 7 ++++++-
 sys/vfs/hammer/hammer_prune.c  | 2 +-
 3 files changed, 8 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/40962009f857572107d3bcd4571ba92c2f587725


-- 
DragonFly BSD source repository


More information about the Commits mailing list