diff options
author | Qu Wenruo <quwenruo@cn.fujitsu.com> | 2013-06-26 13:27:08 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2013-08-09 14:32:32 +0200 |
commit | 6c10240e4ed096ea028bb0b18d1eb71280329a3c (patch) | |
tree | 4d2711690e99a669736b1ca7b6142ab41caae7c4 /btrfs-find-root.c | |
parent | 9d3a4cb00c156077784d0f113c2d733488c6c79e (diff) |
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 <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'btrfs-find-root.c')
-rw-r--r-- | btrfs-find-root.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |