commit 0a6fabdb4a391f3075a7076c85d40112db0604a1 Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Date: Mon Feb 29 00:25:03 2016 +0900
sys/vfs/hammer: Add hammer_btree_extract_data() [1/2] hammer_btree_extract() reads data from block devices if flag has HAMMER_CURSOR_GET_DATA. It doesn't really matter if the flag is HAMMER_CURSOR_GET_DATA or (LEAF | DATA) as long as the flag has HAMMER_CURSOR_GET_DATA. Calling this function will cause cursor->leaf to point to the node element in question regardless of the flag value. This commit adds hammer_btree_extract_data() which is just a wrapper over hammer_btree_extract(cursor, LEAF | DATA). This commit replaces those with (LEAF | DATA). Summary of changes: sys/vfs/hammer/hammer.h | 8 ++++++++ sys/vfs/hammer/hammer_dedup.c | 6 ++---- sys/vfs/hammer/hammer_ioctl.c | 13 ++++--------- sys/vfs/hammer/hammer_reblock.c | 3 +-- 4 files changed, 15 insertions(+), 15 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0a6fabdb4a391f3075a7076c85d40112db0604a1 -- DragonFly BSD source repository