diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-03-14 14:26:53 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-03-14 14:26:53 -0400 |
commit | a1516c8921ce2c148b69493e858d95bc79c92f01 (patch) | |
tree | 3ebe5781aa7f89bd4c78c649941917c272f81f99 /fs/btrfs/print-tree.c | |
parent | 123abc88c9087b9c5605566ee3491aaef17fd837 (diff) |
Btrfs: reorder key offset and flags
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 | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/fs/btrfs/print-tree.c b/fs/btrfs/print-tree.c index 7a189eaa589f..4c710190343d 100644 --- a/fs/btrfs/print-tree.c +++ b/fs/btrfs/print-tree.c | |||
@@ -18,11 +18,11 @@ void btrfs_print_leaf(struct btrfs_root *root, struct btrfs_leaf *l) | |||
18 | fflush(stdout); | 18 | fflush(stdout); |
19 | for (i = 0 ; i < nr ; i++) { | 19 | for (i = 0 ; i < nr ; i++) { |
20 | item = l->items + i; | 20 | item = l->items + i; |
21 | printf("\titem %d key (%Lu %u %Lu) itemoff %d itemsize %d\n", | 21 | printf("\titem %d key (%Lu %Lu %u) itemoff %d itemsize %d\n", |
22 | i, | 22 | i, |
23 | btrfs_key_objectid(&item->key), | 23 | btrfs_key_objectid(&item->key), |
24 | btrfs_key_flags(&item->key), | ||
25 | btrfs_key_offset(&item->key), | 24 | btrfs_key_offset(&item->key), |
25 | btrfs_key_flags(&item->key), | ||
26 | btrfs_item_offset(item), | 26 | btrfs_item_offset(item), |
27 | btrfs_item_size(item)); | 27 | btrfs_item_size(item)); |
28 | printf("\t\titem data %.*s\n", btrfs_item_size(item), | 28 | printf("\t\titem data %.*s\n", btrfs_item_size(item), |
@@ -55,10 +55,12 @@ void btrfs_print_tree(struct btrfs_root *root, struct btrfs_buffer *t) | |||
55 | (u32)BTRFS_NODEPTRS_PER_BLOCK(root) - nr); | 55 | (u32)BTRFS_NODEPTRS_PER_BLOCK(root) - nr); |
56 | fflush(stdout); | 56 | fflush(stdout); |
57 | for (i = 0; i < nr; i++) { | 57 | for (i = 0; i < nr; i++) { |
58 | printf("\tkey %d (%Lu %u %Lu) block %Lu\n", | 58 | printf("\tkey %d (%Lu %Lu %u) block %Lu\n", |
59 | i, | 59 | i, |
60 | c->ptrs[i].key.objectid, c->ptrs[i].key.flags, | 60 | c->ptrs[i].key.objectid, |
61 | c->ptrs[i].key.offset, btrfs_node_blockptr(c, i)); | 61 | c->ptrs[i].key.offset, |
62 | c->ptrs[i].key.flags, | ||
63 | btrfs_node_blockptr(c, i)); | ||
62 | fflush(stdout); | 64 | fflush(stdout); |
63 | } | 65 | } |
64 | for (i = 0; i < nr; i++) { | 66 | for (i = 0; i < nr; i++) { |