Lines Matching defs:fs_info
531 struct btrfs_fs_info *fs_info = device->fs_info; in run_scheduled_bios() local
1556 struct btrfs_fs_info *fs_info = device->fs_info; in find_free_dev_extent_start() local
1720 struct btrfs_fs_info *fs_info = device->fs_info; in btrfs_free_dev_extent() local
1781 struct btrfs_fs_info *fs_info = device->fs_info; in btrfs_alloc_dev_extent() local
1817 static u64 find_next_chunk(struct btrfs_fs_info *fs_info) in find_next_chunk()
1836 static noinline int find_next_devid(struct btrfs_fs_info *fs_info, in find_next_devid()
2000 static int btrfs_check_raid_min_devices(struct btrfs_fs_info *fs_info, in btrfs_check_raid_min_devices()
2054 struct btrfs_fs_info *fs_info = device->fs_info; in btrfs_assign_next_active_device() local
2076 static u64 btrfs_num_devices(struct btrfs_fs_info *fs_info) in btrfs_num_devices()
2090 int btrfs_rm_device(struct btrfs_fs_info *fs_info, const char *device_path, in btrfs_rm_device()
2271 struct btrfs_fs_info *fs_info = srcdev->fs_info; in btrfs_rm_dev_replace_free_srcdev() local
2344 struct btrfs_fs_info *fs_info, const char *device_path) in btrfs_find_device_by_path()
2379 struct btrfs_fs_info *fs_info, u64 devid, in btrfs_find_device_by_devspec()
2412 static int btrfs_prepare_sprout(struct btrfs_fs_info *fs_info) in btrfs_prepare_sprout()
2477 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_finish_sprout() local
2547 int btrfs_init_new_device(struct btrfs_fs_info *fs_info, const char *device_path) in btrfs_init_new_device()
2814 struct btrfs_fs_info *fs_info = device->fs_info; in btrfs_grow_device() local
2851 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_free_chunk() local
2884 static int btrfs_del_sys_chunk(struct btrfs_fs_info *fs_info, u64 chunk_offset) in btrfs_del_sys_chunk()
2938 struct extent_map *btrfs_get_chunk_map(struct btrfs_fs_info *fs_info, in btrfs_get_chunk_map()
2969 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_remove_chunk() local
3054 static int btrfs_relocate_chunk(struct btrfs_fs_info *fs_info, u64 chunk_offset) in btrfs_relocate_chunk()
3098 static int btrfs_relocate_sys_chunks(struct btrfs_fs_info *fs_info) in btrfs_relocate_sys_chunks()
3177 static int btrfs_may_alloc_data_chunk(struct btrfs_fs_info *fs_info, in btrfs_may_alloc_data_chunk()
3213 static int insert_balance_item(struct btrfs_fs_info *fs_info, in insert_balance_item()
3267 static int del_balance_item(struct btrfs_fs_info *fs_info) in del_balance_item()
3352 static void reset_balance_state(struct btrfs_fs_info *fs_info) in reset_balance_state()
3385 static int chunk_usage_range_filter(struct btrfs_fs_info *fs_info, u64 chunk_offset, in chunk_usage_range_filter()
3418 static int chunk_usage_filter(struct btrfs_fs_info *fs_info, in chunk_usage_filter()
3553 struct btrfs_fs_info *fs_info = leaf->fs_info; in should_balance_chunk() local
3639 static int __btrfs_balance(struct btrfs_fs_info *fs_info) in __btrfs_balance()
3855 static inline int balance_need_close(struct btrfs_fs_info *fs_info) in balance_need_close()
3970 static void describe_balance_start_or_resume(struct btrfs_fs_info *fs_info) in describe_balance_start_or_resume()
4029 int btrfs_balance(struct btrfs_fs_info *fs_info, in btrfs_balance()
4221 struct btrfs_fs_info *fs_info = data; in balance_kthread() local
4232 int btrfs_resume_balance_async(struct btrfs_fs_info *fs_info) in btrfs_resume_balance_async()
4261 int btrfs_recover_balance(struct btrfs_fs_info *fs_info) in btrfs_recover_balance()
4331 int btrfs_pause_balance(struct btrfs_fs_info *fs_info) in btrfs_pause_balance()
4360 int btrfs_cancel_balance(struct btrfs_fs_info *fs_info) in btrfs_cancel_balance()
4412 struct btrfs_fs_info *fs_info = data; in btrfs_uuid_scan_kthread() local
4546 static int btrfs_check_uuid_tree_entry(struct btrfs_fs_info *fs_info, in btrfs_check_uuid_tree_entry()
4586 struct btrfs_fs_info *fs_info = (struct btrfs_fs_info *)data; in btrfs_uuid_rescan_kthread() local
4603 int btrfs_create_uuid_tree(struct btrfs_fs_info *fs_info) in btrfs_create_uuid_tree()
4645 int btrfs_check_uuid_tree(struct btrfs_fs_info *fs_info) in btrfs_check_uuid_tree()
4668 struct btrfs_fs_info *fs_info = device->fs_info; in btrfs_shrink_device() local
4849 static int btrfs_add_system_chunk(struct btrfs_fs_info *fs_info, in btrfs_add_system_chunk()
5189 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_finish_chunk_alloc() local
5302 struct btrfs_fs_info *fs_info = trans->fs_info; in init_first_rw_device() local
5327 int btrfs_chunk_readonly(struct btrfs_fs_info *fs_info, u64 chunk_offset) in btrfs_chunk_readonly()
5384 int btrfs_num_copies(struct btrfs_fs_info *fs_info, u64 logical, u64 len) in btrfs_num_copies()
5429 unsigned long btrfs_full_stripe_len(struct btrfs_fs_info *fs_info, in btrfs_full_stripe_len()
5447 int btrfs_is_parity_mirror(struct btrfs_fs_info *fs_info, u64 logical, u64 len) in btrfs_is_parity_mirror()
5464 static int find_live_mirror(struct btrfs_fs_info *fs_info, in find_live_mirror()
5585 static int __btrfs_map_block_for_discard(struct btrfs_fs_info *fs_info, in __btrfs_map_block_for_discard()
5745 static int get_extra_mirror_from_replace(struct btrfs_fs_info *fs_info, in get_extra_mirror_from_replace()
5922 int btrfs_get_io_geometry(struct btrfs_fs_info *fs_info, enum btrfs_map_op op, in btrfs_get_io_geometry()
6008 static int __btrfs_map_block(struct btrfs_fs_info *fs_info, in __btrfs_map_block()
6265 int btrfs_map_block(struct btrfs_fs_info *fs_info, enum btrfs_map_op op, in btrfs_map_block()
6274 int btrfs_map_sblock(struct btrfs_fs_info *fs_info, enum btrfs_map_op op, in btrfs_map_sblock()
6281 int btrfs_rmap_block(struct btrfs_fs_info *fs_info, u64 chunk_start, in btrfs_rmap_block()
6429 struct btrfs_fs_info *fs_info = device->fs_info; in btrfs_schedule_bio() local
6467 struct btrfs_fs_info *fs_info = bbio->fs_info; in submit_stripe_bio() local
6505 blk_status_t btrfs_map_bio(struct btrfs_fs_info *fs_info, struct bio *bio, in btrfs_map_bio()
6647 struct btrfs_device *btrfs_alloc_device(struct btrfs_fs_info *fs_info, in btrfs_alloc_device()
6685 static void btrfs_report_missing_device(struct btrfs_fs_info *fs_info, in btrfs_report_missing_device()
6719 struct btrfs_fs_info *fs_info = leaf->fs_info; in read_one_chunk() local
6852 static struct btrfs_fs_devices *open_seed_devices(struct btrfs_fs_info *fs_info, in open_seed_devices()
6910 struct btrfs_fs_info *fs_info = leaf->fs_info; in read_one_dev() local
7005 int btrfs_read_sys_array(struct btrfs_fs_info *fs_info) in btrfs_read_sys_array()
7133 bool btrfs_check_rw_degradable(struct btrfs_fs_info *fs_info, in btrfs_check_rw_degradable()
7190 int btrfs_read_chunk_tree(struct btrfs_fs_info *fs_info) in btrfs_read_chunk_tree()
7284 void btrfs_init_devices_late(struct btrfs_fs_info *fs_info) in btrfs_init_devices_late()
7322 int btrfs_init_dev_stats(struct btrfs_fs_info *fs_info) in btrfs_init_dev_stats()
7382 struct btrfs_fs_info *fs_info = trans->fs_info; in update_dev_stat_item() local
7449 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_run_dev_stats() local
7524 int btrfs_get_dev_stats(struct btrfs_fs_info *fs_info, in btrfs_get_dev_stats()
7621 void btrfs_set_fs_info_ptr(struct btrfs_fs_info *fs_info) in btrfs_set_fs_info_ptr()
7630 void btrfs_reset_fs_info_ptr(struct btrfs_fs_info *fs_info) in btrfs_reset_fs_info_ptr()
7651 static int verify_one_dev_extent(struct btrfs_fs_info *fs_info, in verify_one_dev_extent()
7742 static int verify_chunk_dev_extent_mapping(struct btrfs_fs_info *fs_info) in verify_chunk_dev_extent_mapping()
7774 int btrfs_verify_dev_extents(struct btrfs_fs_info *fs_info) in btrfs_verify_dev_extents()
7861 bool btrfs_pinned_by_swapfile(struct btrfs_fs_info *fs_info, void *ptr) in btrfs_pinned_by_swapfile()