Lines Matching defs:fs_info

411 static struct btrfs_device *__alloc_device(struct btrfs_fs_info *fs_info)  in __alloc_device()
1535 struct btrfs_fs_info *fs_info = device->fs_info; in find_free_dev_extent_start() local
1684 struct btrfs_fs_info *fs_info = device->fs_info; in btrfs_free_dev_extent() local
1745 struct btrfs_fs_info *fs_info = device->fs_info; in btrfs_alloc_dev_extent() local
1781 static u64 find_next_chunk(struct btrfs_fs_info *fs_info) in find_next_chunk()
1800 static noinline int find_next_devid(struct btrfs_fs_info *fs_info, in find_next_devid()
1970 static int btrfs_check_raid_min_devices(struct btrfs_fs_info *fs_info, in btrfs_check_raid_min_devices()
2024 struct btrfs_fs_info *fs_info = device->fs_info; in btrfs_assign_next_active_device() local
2043 static u64 btrfs_num_devices(struct btrfs_fs_info *fs_info) in btrfs_num_devices()
2057 void btrfs_scratch_superblocks(struct btrfs_fs_info *fs_info, in btrfs_scratch_superblocks()
2097 int btrfs_rm_device(struct btrfs_fs_info *fs_info, const char *device_path, in btrfs_rm_device()
2335 struct btrfs_fs_info *fs_info, const char *device_path) in btrfs_find_device_by_path()
2369 struct btrfs_fs_info *fs_info, u64 devid, in btrfs_find_device_by_devspec()
2402 static int btrfs_prepare_sprout(struct btrfs_fs_info *fs_info) in btrfs_prepare_sprout()
2473 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_finish_sprout() local
2543 int btrfs_init_new_device(struct btrfs_fs_info *fs_info, const char *device_path) in btrfs_init_new_device()
2824 struct btrfs_fs_info *fs_info = device->fs_info; in btrfs_grow_device() local
2861 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_free_chunk() local
2894 static int btrfs_del_sys_chunk(struct btrfs_fs_info *fs_info, u64 chunk_offset) in btrfs_del_sys_chunk()
2948 struct extent_map *btrfs_get_chunk_map(struct btrfs_fs_info *fs_info, in btrfs_get_chunk_map()
2979 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_remove_chunk() local
3064 static int btrfs_relocate_chunk(struct btrfs_fs_info *fs_info, u64 chunk_offset) in btrfs_relocate_chunk()
3115 static int btrfs_relocate_sys_chunks(struct btrfs_fs_info *fs_info) in btrfs_relocate_sys_chunks()
3194 static int btrfs_may_alloc_data_chunk(struct btrfs_fs_info *fs_info, in btrfs_may_alloc_data_chunk()
3231 static int insert_balance_item(struct btrfs_fs_info *fs_info, in insert_balance_item()
3285 static int del_balance_item(struct btrfs_fs_info *fs_info) in del_balance_item()
3370 static void reset_balance_state(struct btrfs_fs_info *fs_info) in reset_balance_state()
3403 static int chunk_usage_range_filter(struct btrfs_fs_info *fs_info, u64 chunk_offset, in chunk_usage_range_filter()
3436 static int chunk_usage_filter(struct btrfs_fs_info *fs_info, in chunk_usage_filter()
3570 struct btrfs_fs_info *fs_info = leaf->fs_info; in should_balance_chunk() local
3656 static int __btrfs_balance(struct btrfs_fs_info *fs_info) in __btrfs_balance()
3867 static inline int balance_need_close(struct btrfs_fs_info *fs_info) in balance_need_close()
3879 static inline int validate_convert_profile(struct btrfs_fs_info *fs_info, in validate_convert_profile()
3994 static void describe_balance_start_or_resume(struct btrfs_fs_info *fs_info) in describe_balance_start_or_resume()
4053 int btrfs_balance(struct btrfs_fs_info *fs_info, in btrfs_balance()
4249 struct btrfs_fs_info *fs_info = data; in balance_kthread() local
4262 int btrfs_resume_balance_async(struct btrfs_fs_info *fs_info) in btrfs_resume_balance_async()
4291 int btrfs_recover_balance(struct btrfs_fs_info *fs_info) in btrfs_recover_balance()
4363 int btrfs_pause_balance(struct btrfs_fs_info *fs_info) in btrfs_pause_balance()
4392 int btrfs_cancel_balance(struct btrfs_fs_info *fs_info) in btrfs_cancel_balance()
4444 struct btrfs_fs_info *fs_info = data; in btrfs_uuid_scan_kthread() local
4577 int btrfs_create_uuid_tree(struct btrfs_fs_info *fs_info) in btrfs_create_uuid_tree()
4626 struct btrfs_fs_info *fs_info = device->fs_info; in btrfs_shrink_device() local
4811 static int btrfs_add_system_chunk(struct btrfs_fs_info *fs_info, in btrfs_add_system_chunk()
5270 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_finish_chunk_alloc() local
5367 struct btrfs_fs_info *fs_info = trans->fs_info; in init_first_rw_device() local
5388 int btrfs_chunk_readonly(struct btrfs_fs_info *fs_info, u64 chunk_offset) in btrfs_chunk_readonly()
5445 int btrfs_num_copies(struct btrfs_fs_info *fs_info, u64 logical, u64 len) in btrfs_num_copies()
5490 unsigned long btrfs_full_stripe_len(struct btrfs_fs_info *fs_info, in btrfs_full_stripe_len()
5508 int btrfs_is_parity_mirror(struct btrfs_fs_info *fs_info, u64 logical, u64 len) in btrfs_is_parity_mirror()
5525 static int find_live_mirror(struct btrfs_fs_info *fs_info, in find_live_mirror()
5637 static int __btrfs_map_block_for_discard(struct btrfs_fs_info *fs_info, in __btrfs_map_block_for_discard()
5799 static int get_extra_mirror_from_replace(struct btrfs_fs_info *fs_info, in get_extra_mirror_from_replace()
5976 int btrfs_get_io_geometry(struct btrfs_fs_info *fs_info, enum btrfs_map_op op, in btrfs_get_io_geometry()
6062 static int __btrfs_map_block(struct btrfs_fs_info *fs_info, in __btrfs_map_block()
6304 int btrfs_map_block(struct btrfs_fs_info *fs_info, enum btrfs_map_op op, in btrfs_map_block()
6317 int btrfs_map_sblock(struct btrfs_fs_info *fs_info, enum btrfs_map_op op, in btrfs_map_sblock()
6391 struct btrfs_fs_info *fs_info = bbio->fs_info; in submit_stripe_bio() local
6426 blk_status_t btrfs_map_bio(struct btrfs_fs_info *fs_info, struct bio *bio, in btrfs_map_bio()
6583 struct btrfs_device *btrfs_alloc_device(struct btrfs_fs_info *fs_info, in btrfs_alloc_device()
6618 static void btrfs_report_missing_device(struct btrfs_fs_info *fs_info, in btrfs_report_missing_device()
6647 struct btrfs_fs_info *fs_info = leaf->fs_info; in read_one_chunk() local
6780 static struct btrfs_fs_devices *open_seed_devices(struct btrfs_fs_info *fs_info, in open_seed_devices()
6837 struct btrfs_fs_info *fs_info = leaf->fs_info; in read_one_dev() local
6932 int btrfs_read_sys_array(struct btrfs_fs_info *fs_info) in btrfs_read_sys_array()
7061 bool btrfs_check_rw_degradable(struct btrfs_fs_info *fs_info, in btrfs_check_rw_degradable()
7131 int btrfs_read_chunk_tree(struct btrfs_fs_info *fs_info) in btrfs_read_chunk_tree()
7247 void btrfs_init_devices_late(struct btrfs_fs_info *fs_info) in btrfs_init_devices_late()
7331 int btrfs_init_dev_stats(struct btrfs_fs_info *fs_info) in btrfs_init_dev_stats()
7365 struct btrfs_fs_info *fs_info = trans->fs_info; in update_dev_stat_item() local
7432 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_run_dev_stats() local
7507 int btrfs_get_dev_stats(struct btrfs_fs_info *fs_info, in btrfs_get_dev_stats()
7588 static int verify_one_dev_extent(struct btrfs_fs_info *fs_info, in verify_one_dev_extent()
7682 static int verify_chunk_dev_extent_mapping(struct btrfs_fs_info *fs_info) in verify_chunk_dev_extent_mapping()
7714 int btrfs_verify_dev_extents(struct btrfs_fs_info *fs_info) in btrfs_verify_dev_extents()
7801 bool btrfs_pinned_by_swapfile(struct btrfs_fs_info *fs_info, void *ptr) in btrfs_pinned_by_swapfile()