Lines Matching refs:info
44 #include "space-info.h"
75 struct btrfs_fs_info *info;
645 fs_info = end_io_wq->info;
670 blk_status_t btrfs_bio_wq_end_io(struct btrfs_fs_info *info, struct bio *bio,
681 end_io_wq->info = info;
1858 static int find_newest_super_backup(struct btrfs_fs_info *info)
1860 const u64 newest_gen = btrfs_super_generation(info->super_copy);
1866 root_backup = info->super_copy->super_roots + i;
1880 static void backup_super_roots(struct btrfs_fs_info *info)
1882 const int next_backup = info->backup_root_index;
1885 root_backup = info->super_for_commit->super_roots + next_backup;
1893 info->backup_root_index = (next_backup + 1) % BTRFS_NUM_BACKUP_ROOTS;
1895 btrfs_set_backup_tree_root(root_backup, info->tree_root->node->start);
1897 btrfs_header_generation(info->tree_root->node));
1900 btrfs_header_level(info->tree_root->node));
1902 btrfs_set_backup_chunk_root(root_backup, info->chunk_root->node->start);
1904 btrfs_header_generation(info->chunk_root->node));
1906 btrfs_header_level(info->chunk_root->node));
1908 btrfs_set_backup_extent_root(root_backup, info->extent_root->node->start);
1910 btrfs_header_generation(info->extent_root->node));
1912 btrfs_header_level(info->extent_root->node));
1918 if (info->fs_root && info->fs_root->node) {
1920 info->fs_root->node->start);
1922 btrfs_header_generation(info->fs_root->node));
1924 btrfs_header_level(info->fs_root->node));
1927 btrfs_set_backup_dev_root(root_backup, info->dev_root->node->start);
1929 btrfs_header_generation(info->dev_root->node));
1931 btrfs_header_level(info->dev_root->node));
1933 btrfs_set_backup_csum_root(root_backup, info->csum_root->node->start);
1935 btrfs_header_generation(info->csum_root->node));
1937 btrfs_header_level(info->csum_root->node));
1940 btrfs_super_total_bytes(info->super_copy));
1942 btrfs_super_bytes_used(info->super_copy));
1944 btrfs_super_num_devices(info->super_copy));
1950 memcpy(&info->super_copy->super_roots,
1951 &info->super_for_commit->super_roots,
2037 static void free_root_pointers(struct btrfs_fs_info *info, bool free_chunk_root)
2039 free_root_extent_buffers(info->tree_root);
2041 free_root_extent_buffers(info->dev_root);
2042 free_root_extent_buffers(info->extent_root);
2043 free_root_extent_buffers(info->csum_root);
2044 free_root_extent_buffers(info->quota_root);
2045 free_root_extent_buffers(info->uuid_root);
2046 free_root_extent_buffers(info->fs_root);
2047 free_root_extent_buffers(info->data_reloc_root);
2049 free_root_extent_buffers(info->chunk_root);
2050 free_root_extent_buffers(info->free_space_root);
3265 btrfs_err(fs_info, "failed to initialize space info: %d", ret);
3800 static int barrier_all_devices(struct btrfs_fs_info *info)
3807 lockdep_assert_held(&info->fs_devices->device_list_mutex);
3809 head = &info->fs_devices->devices;
3850 return check_barrier_error(info);