btrfs-progs: check: move device_record to main.c

The structure is used only inside main.c, no need to export it.

Signed-off-by: David Sterba <dsterba@suse.com>
master
David Sterba 2019-08-26 20:03:57 +02:00
parent 705f4ecf02
commit 0889161127
2 changed files with 16 additions and 16 deletions

View File

@ -44,22 +44,6 @@ struct block_group_tree {
struct list_head block_groups;
};
struct device_record {
struct rb_node node;
u64 devid;
u64 generation;
u64 objectid;
u8 type;
u64 offset;
u64 total_byte;
u64 byte_used;
u64 real_used;
};
struct stripe {
u64 devid;
u64 offset;

View File

@ -75,6 +75,22 @@ enum btrfs_check_mode {
static enum btrfs_check_mode check_mode = CHECK_MODE_DEFAULT;
struct device_record {
struct rb_node node;
u64 devid;
u64 generation;
u64 objectid;
u8 type;
u64 offset;
u64 total_byte;
u64 byte_used;
u64 real_used;
};
static int compare_data_backref(struct rb_node *node1, struct rb_node *node2)
{
struct extent_backref *ext1 = rb_node_to_extent_backref(node1);