Fix compiler warning in volumes.c

master
Chris Mason 2008-05-02 15:05:11 -04:00 committed by David Woodhouse
parent bacbad41a0
commit 9a73efb7d1
2 changed files with 4 additions and 1 deletions

View File

@ -606,6 +606,9 @@ static int run_next_block(struct btrfs_root *root,
data_bytes_allocated +=
btrfs_file_extent_disk_num_bytes(buf, fi);
if (data_bytes_allocated < root->sectorsize) {
abort();
}
data_bytes_referenced +=
btrfs_file_extent_num_bytes(buf, fi);
ret = add_extent_rec(extent_cache, NULL, bytenr,

View File

@ -478,7 +478,7 @@ int btrfs_add_device(struct btrfs_trans_handle *trans,
struct extent_buffer *leaf;
struct btrfs_key key;
unsigned long ptr;
u64 free_devid;
u64 free_devid = 0;
root = root->fs_info->chunk_root;