diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-03-13 09:28:32 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-03-13 09:28:32 -0400 |
commit | 1d4f8a0c1eca5586134b56a4114a7cd5e85e3560 (patch) | |
tree | 602ec189899092f0f61b1b857937cdf9d1799590 /fs/btrfs/print-tree.c | |
parent | 0783fcfc4dc19b8bb99bd51b7afa669ba4cbd377 (diff) |
Btrfs: node->blockptrs endian fixes
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/print-tree.c')
-rw-r--r-- | fs/btrfs/print-tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/print-tree.c b/fs/btrfs/print-tree.c index 33f5ee4052c1..101278e1139a 100644 --- a/fs/btrfs/print-tree.c +++ b/fs/btrfs/print-tree.c | |||
@@ -54,12 +54,12 @@ void print_tree(struct ctree_root *root, struct tree_buffer *t) | |||
54 | printf("\tkey %d (%Lu %u %Lu) block %Lu\n", | 54 | printf("\tkey %d (%Lu %u %Lu) block %Lu\n", |
55 | i, | 55 | i, |
56 | c->keys[i].objectid, c->keys[i].flags, c->keys[i].offset, | 56 | c->keys[i].objectid, c->keys[i].flags, c->keys[i].offset, |
57 | c->blockptrs[i]); | 57 | btrfs_node_blockptr(c, i)); |
58 | fflush(stdout); | 58 | fflush(stdout); |
59 | } | 59 | } |
60 | for (i = 0; i < nr; i++) { | 60 | for (i = 0; i < nr; i++) { |
61 | struct tree_buffer *next_buf = read_tree_block(root, | 61 | struct tree_buffer *next_buf = read_tree_block(root, |
62 | c->blockptrs[i]); | 62 | btrfs_node_blockptr(c, i)); |
63 | struct node *next = &next_buf->node; | 63 | struct node *next = &next_buf->node; |
64 | if (btrfs_is_leaf(next) && | 64 | if (btrfs_is_leaf(next) && |
65 | btrfs_header_level(&c->header) != 1) | 65 | btrfs_header_level(&c->header) != 1) |