sys/vfs/hammer: Don't use HAMMER_CURSOR_GET_LEAF
commitcf977f11346cb0bcae56d092359a0774a5dc4d61
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Tue, 1 Mar 2016 17:29:09 +0000 (2 02:29 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sat, 5 Mar 2016 09:43:55 +0000 (5 18:43 +0900)
treed5633fad0f3b28fcfe5e63686677b0b6ec9fcfcf
parent40962009f857572107d3bcd4571ba92c2f587725
sys/vfs/hammer: Don't use HAMMER_CURSOR_GET_LEAF

HAMMER_CURSOR_GET_LEAF is not used by the current implementation
of hammer_btree_extract(), since this function will cause
cursor->leaf to point to the node element in question regardless
of the flag value. Then just don't use this flag when calling
hammer_btree_extract() when we know loading node element (leaf)
is the default behavior.

The cursor flag is already complicated enough, so simplifying
btree extract callers by either passing 0 or DATA but not LEAF
makes things a bit more clear.
sys/vfs/hammer/hammer.h
sys/vfs/hammer/hammer_cursor.h
sys/vfs/hammer/hammer_inode.c