From 6c10240e4ed096ea028bb0b18d1eb71280329a3c Mon Sep 17 00:00:00 2001 From: Qu Wenruo Date: Wed, 26 Jun 2013 13:27:08 +0800 Subject: btrfs-progs: Cleanup for using BTRFS_SETGET_STACK instead of raw convert Some codes still use the cpu_to_lexx instead of the BTRFS_SETGET_STACK_FUNCS declared in ctree.h. Also added some BTRFS_SETGET_STACK_FUNCS for btrfs_header and btrfs_super. Signed-off-by: Qu Wenruo Signed-off-by: David Sterba Signed-off-by: Chris Mason --- btrfs-find-root.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'btrfs-find-root.c') diff --git a/btrfs-find-root.c b/btrfs-find-root.c index 9b3d7df8..989535f6 100644 --- a/btrfs-find-root.c +++ b/btrfs-find-root.c @@ -141,10 +141,10 @@ static int search_iobuf(struct btrfs_root *root, void *iobuf, u64 h_byte, h_level, h_gen, h_owner; // printf("searching %Lu\n", offset + block_off); - h_byte = le64_to_cpu(header->bytenr); - h_owner = le64_to_cpu(header->owner); + h_byte = btrfs_stack_header_bytenr(header); + h_owner = btrfs_stack_header_owner(header); h_level = header->level; - h_gen = le64_to_cpu(header->generation); + h_gen = btrfs_stack_header_generation(header); if (h_owner != objectid) goto next; -- cgit v1.2.3