diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-10-15 16:25:14 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-10-15 16:25:14 -0400 |
commit | 38f79f9077fce76eabc5566319f33b8e800fb96d (patch) | |
tree | 2b7e92dc61209b55d5f119e1ddbf472cf32528d1 /btrfsck.c | |
parent | 08c66b7738e17ae2879d767a59ebec56c7a189b2 (diff) |
Switch to byte granular allocations
Diffstat (limited to 'btrfsck.c')
-rw-r--r-- | btrfsck.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -78,12 +78,12 @@ static int check_leaf(struct btrfs_root *root, if (btrfs_header_level(&leaf->header) != 0) { fprintf(stderr, "leaf is not a leaf %llu\n", - (unsigned long long)btrfs_header_blocknr(&leaf->header)); + (unsigned long long)btrfs_header_bytenr(&leaf->header)); return 1; } if (btrfs_leaf_free_space(root, leaf) < 0) { fprintf(stderr, "leaf free space incorrect %llu %d\n", - (unsigned long long)btrfs_header_blocknr(&leaf->header), + (unsigned long long)btrfs_header_bytenr(&leaf->header), btrfs_leaf_free_space(root, leaf)); return 1; } @@ -94,7 +94,7 @@ static int check_leaf(struct btrfs_root *root, if (parent_key->type && memcmp(parent_key, &leaf->items[0].key, sizeof(struct btrfs_disk_key))) { fprintf(stderr, "leaf parent key incorrect %llu\n", - (unsigned long long)btrfs_header_blocknr(&leaf->header)); + (unsigned long long)btrfs_header_bytenr(&leaf->header)); return 1; } for (i = 0; nritems > 1 && i < nritems - 2; i++) { |