Lines Matching defs:fs_info

209 static int add_excluded_extent(struct btrfs_fs_info *fs_info,  in add_excluded_extent()
222 struct btrfs_fs_info *fs_info = cache->fs_info; in free_excluded_extents() local
236 struct btrfs_fs_info *fs_info = cache->fs_info; in exclude_super_stripes() local
317 struct btrfs_fs_info *fs_info = block_group->fs_info; in fragment_free_space() local
382 struct btrfs_fs_info *fs_info = block_group->fs_info; in load_extent_tree_free() local
519 struct btrfs_fs_info *fs_info; in caching_thread() local
571 struct btrfs_fs_info *fs_info = cache->fs_info; in cache_block_group() local
741 static void add_pinned_bytes(struct btrfs_fs_info *fs_info, s64 num_bytes, in add_pinned_bytes()
778 int btrfs_lookup_data_extent(struct btrfs_fs_info *fs_info, u64 start, u64 len) in btrfs_lookup_data_extent()
806 struct btrfs_fs_info *fs_info, u64 bytenr, in btrfs_lookup_extent_info()
1480 struct btrfs_fs_info *fs_info = trans->fs_info; in lookup_inline_extent_backref() local
1666 void setup_inline_extent_backref(struct btrfs_fs_info *fs_info, in setup_inline_extent_backref()
1764 struct btrfs_fs_info *fs_info = leaf->fs_info; in update_inline_extent_backref() local
1963 int btrfs_discard_extent(struct btrfs_fs_info *fs_info, u64 bytenr, in btrfs_discard_extent()
2032 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_inc_extent_ref() local
2222 struct btrfs_fs_info *fs_info = trans->fs_info; in run_delayed_extent_op() local
2429 struct btrfs_fs_info *fs_info = trans->fs_info; in cleanup_ref_head() local
2512 struct btrfs_fs_info *fs_info = trans->fs_info; in __btrfs_run_delayed_refs() local
2713 static inline u64 heads_to_leaves(struct btrfs_fs_info *fs_info, u64 heads) in heads_to_leaves()
2733 u64 btrfs_csum_bytes_to_leaves(struct btrfs_fs_info *fs_info, u64 csum_bytes) in btrfs_csum_bytes_to_leaves()
2749 struct btrfs_fs_info *fs_info) in btrfs_check_space_for_delayed_refs()
2786 struct btrfs_fs_info *fs_info) in btrfs_should_throttle_delayed_refs()
2824 struct btrfs_fs_info *fs_info = async->root->fs_info; in delayed_ref_async_start() local
2861 int btrfs_async_run_delayed_refs(struct btrfs_fs_info *fs_info, in btrfs_async_run_delayed_refs()
2908 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_run_delayed_refs() local
2967 struct btrfs_fs_info *fs_info, in btrfs_set_disk_extent_flags()
3074 struct btrfs_fs_info *fs_info = root->fs_info; in check_committed_ref() local
3177 struct btrfs_fs_info *fs_info = root->fs_info; in __btrfs_mod_ref() local
3261 struct btrfs_fs_info *fs_info, in write_one_cache_group()
3288 next_block_group(struct btrfs_fs_info *fs_info, in next_block_group()
3319 struct btrfs_fs_info *fs_info = block_group->fs_info; in cache_save_setup() local
3478 struct btrfs_fs_info *fs_info) in btrfs_setup_space_cache()
3517 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_start_dirty_block_groups() local
3679 struct btrfs_fs_info *fs_info) in btrfs_write_dirty_block_groups()
3806 int btrfs_extent_readonly(struct btrfs_fs_info *fs_info, u64 bytenr) in btrfs_extent_readonly()
3819 bool btrfs_inc_nocow_writers(struct btrfs_fs_info *fs_info, u64 bytenr) in btrfs_inc_nocow_writers()
3843 void btrfs_dec_nocow_writers(struct btrfs_fs_info *fs_info, u64 bytenr) in btrfs_dec_nocow_writers()
3952 static void set_avail_alloc_bits(struct btrfs_fs_info *fs_info, u64 flags) in set_avail_alloc_bits()
3973 static u64 get_restripe_target(struct btrfs_fs_info *fs_info, u64 flags) in get_restripe_target()
4002 static u64 btrfs_reduce_alloc_profile(struct btrfs_fs_info *fs_info, u64 flags) in btrfs_reduce_alloc_profile()
4047 static u64 get_alloc_profile(struct btrfs_fs_info *fs_info, u64 orig_flags) in get_alloc_profile()
4069 struct btrfs_fs_info *fs_info = root->fs_info; in get_alloc_profile_by_root() local
4084 u64 btrfs_data_alloc_profile(struct btrfs_fs_info *fs_info) in btrfs_data_alloc_profile()
4089 u64 btrfs_metadata_alloc_profile(struct btrfs_fs_info *fs_info) in btrfs_metadata_alloc_profile()
4094 u64 btrfs_system_alloc_profile(struct btrfs_fs_info *fs_info) in btrfs_system_alloc_profile()
4111 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_alloc_data_chunk_ondemand() local
4235 struct btrfs_fs_info *fs_info = btrfs_sb(inode->i_sb); in btrfs_check_data_free_space() local
4267 struct btrfs_fs_info *fs_info = btrfs_sb(inode->i_sb); in btrfs_free_reserved_data_space_noquota() local
4325 static int should_alloc_chunk(struct btrfs_fs_info *fs_info, in should_alloc_chunk()
4360 static u64 get_profile_num_devs(struct btrfs_fs_info *fs_info, u64 type) in get_profile_num_devs()
4384 struct btrfs_fs_info *fs_info = trans->fs_info; in check_system_chunk() local
4447 struct btrfs_fs_info *fs_info = trans->fs_info; in do_chunk_alloc() local
4565 static int can_overcommit(struct btrfs_fs_info *fs_info, in can_overcommit()
4628 static void btrfs_writeback_inodes_sb_nr(struct btrfs_fs_info *fs_info, in btrfs_writeback_inodes_sb_nr()
4650 static inline u64 calc_reclaim_items_nr(struct btrfs_fs_info *fs_info, in calc_reclaim_items_nr()
4668 static void shrink_delalloc(struct btrfs_fs_info *fs_info, u64 to_reclaim, in shrink_delalloc()
4757 static int may_commit_transaction(struct btrfs_fs_info *fs_info, in may_commit_transaction()
4821 static void flush_space(struct btrfs_fs_info *fs_info, in flush_space()
4878 btrfs_calc_reclaim_metadata_size(struct btrfs_fs_info *fs_info, in btrfs_calc_reclaim_metadata_size()
4916 static inline int need_do_async_reclaim(struct btrfs_fs_info *fs_info, in need_do_async_reclaim()
4953 struct btrfs_fs_info *fs_info; in btrfs_async_reclaim_metadata_space() local
5013 static void priority_reclaim_metadata_space(struct btrfs_fs_info *fs_info, in priority_reclaim_metadata_space()
5049 static int wait_reserve_ticket(struct btrfs_fs_info *fs_info, in wait_reserve_ticket()
5100 static int __reserve_metadata_bytes(struct btrfs_fs_info *fs_info, in __reserve_metadata_bytes()
5225 struct btrfs_fs_info *fs_info = root->fs_info; in reserve_metadata_bytes() local
5254 struct btrfs_fs_info *fs_info = root->fs_info; in get_block_rsv() local
5298 int btrfs_cond_migrate_bytes(struct btrfs_fs_info *fs_info, in btrfs_cond_migrate_bytes()
5327 static void space_info_add_old_bytes(struct btrfs_fs_info *fs_info, in space_info_add_old_bytes()
5387 static void space_info_add_new_bytes(struct btrfs_fs_info *fs_info, in space_info_add_new_bytes()
5424 static u64 block_rsv_release_bytes(struct btrfs_fs_info *fs_info, in block_rsv_release_bytes()
5501 void btrfs_init_metadata_block_rsv(struct btrfs_fs_info *fs_info, in btrfs_init_metadata_block_rsv()
5510 struct btrfs_block_rsv *btrfs_alloc_block_rsv(struct btrfs_fs_info *fs_info, in btrfs_alloc_block_rsv()
5523 void btrfs_free_block_rsv(struct btrfs_fs_info *fs_info, in btrfs_free_block_rsv()
5658 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_inode_rsv_release() local
5681 void btrfs_block_rsv_release(struct btrfs_fs_info *fs_info, in btrfs_block_rsv_release()
5693 static void update_global_block_rsv(struct btrfs_fs_info *fs_info) in update_global_block_rsv()
5743 static void init_global_block_rsv(struct btrfs_fs_info *fs_info) in init_global_block_rsv()
5767 static void release_global_block_rsv(struct btrfs_fs_info *fs_info) in release_global_block_rsv()
5786 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_trans_release_chunk_metadata() local
5819 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_subvolume_reserve_metadata() local
5846 void btrfs_subvolume_release_metadata(struct btrfs_fs_info *fs_info, in btrfs_subvolume_release_metadata()
5852 static void btrfs_calculate_inode_block_rsv_size(struct btrfs_fs_info *fs_info, in btrfs_calculate_inode_block_rsv_size()
5886 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_delalloc_reserve_metadata() local
5959 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_delalloc_release_metadata() local
5988 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_delalloc_release_extents() local
6164 static u64 first_logical_byte(struct btrfs_fs_info *fs_info, u64 search_start) in first_logical_byte()
6186 static int pin_down_extent(struct btrfs_fs_info *fs_info, in pin_down_extent()
6213 int btrfs_pin_extent(struct btrfs_fs_info *fs_info, in btrfs_pin_extent()
6230 int btrfs_pin_extent_for_log_replay(struct btrfs_fs_info *fs_info, in btrfs_pin_extent_for_log_replay()
6256 static int __exclude_logged_extent(struct btrfs_fs_info *fs_info, in __exclude_logged_extent()
6302 int btrfs_exclude_logged_extents(struct btrfs_fs_info *fs_info, in btrfs_exclude_logged_extents()
6340 void btrfs_dec_block_group_reservations(struct btrfs_fs_info *fs_info, in btrfs_dec_block_group_reservations()
6446 void btrfs_prepare_extent_commit(struct btrfs_fs_info *fs_info) in btrfs_prepare_extent_commit()
6481 fetch_cluster_info(struct btrfs_fs_info *fs_info, in fetch_cluster_info()
6505 static int unpin_extent_range(struct btrfs_fs_info *fs_info, in unpin_extent_range()
6609 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_finish_extent_commit() local
6984 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_free_tree_block() local
7051 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_free_extent() local
7225 static noinline int find_free_extent(struct btrfs_fs_info *fs_info, in find_free_extent()
7707 static void dump_space_info(struct btrfs_fs_info *fs_info, in dump_space_info()
7796 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_reserve_extent() local
7833 static int __btrfs_free_reserved_extent(struct btrfs_fs_info *fs_info, in __btrfs_free_reserved_extent()
7861 int btrfs_free_reserved_extent(struct btrfs_fs_info *fs_info, in btrfs_free_reserved_extent()
7867 int btrfs_free_and_pin_reserved_extent(struct btrfs_fs_info *fs_info, in btrfs_free_and_pin_reserved_extent()
7878 struct btrfs_fs_info *fs_info = trans->fs_info; in alloc_reserved_file_extent() local
7951 struct btrfs_fs_info *fs_info = trans->fs_info; in alloc_reserved_tree_block() local
8077 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_alloc_logged_file_extent() local
8115 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_init_new_buffer() local
8164 struct btrfs_fs_info *fs_info = root->fs_info; in use_block_rsv() local
8215 static void unuse_block_rsv(struct btrfs_fs_info *fs_info, in unuse_block_rsv()
8233 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_alloc_tree_block() local
8337 struct btrfs_fs_info *fs_info = root->fs_info; in reada_walk_down() local
8425 struct btrfs_fs_info *fs_info = root->fs_info; in walk_down_proc() local
8507 struct btrfs_fs_info *fs_info = root->fs_info; in do_walk_down() local
8688 struct btrfs_fs_info *fs_info = root->fs_info; in walk_up_proc() local
8866 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_drop_snapshot() local
9089 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_drop_subtree() local
9149 static u64 update_block_group_flags(struct btrfs_fs_info *fs_info, u64 flags) in update_block_group_flags()
9245 struct btrfs_fs_info *fs_info = cache->fs_info; in btrfs_inc_block_group_ro() local
9381 int btrfs_can_relocate(struct btrfs_fs_info *fs_info, u64 bytenr) in btrfs_can_relocate()
9526 static int find_first_block_group(struct btrfs_fs_info *fs_info, in find_first_block_group()
9746 void btrfs_add_raid_kobjects(struct btrfs_fs_info *fs_info) in btrfs_add_raid_kobjects()
9777 struct btrfs_fs_info *fs_info = cache->fs_info; in link_block_group() local
9805 btrfs_create_block_group_cache(struct btrfs_fs_info *fs_info, in btrfs_create_block_group_cache()
9851 static int check_chunk_block_group_mappings(struct btrfs_fs_info *fs_info) in check_chunk_block_group_mappings()
10076 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_create_pending_block_groups() local
10112 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_make_block_group() local
10186 static void clear_avail_alloc_bits(struct btrfs_fs_info *fs_info, u64 flags) in clear_avail_alloc_bits()
10204 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_remove_block_group() local
10496 btrfs_start_trans_remove_block_group(struct btrfs_fs_info *fs_info, in btrfs_start_trans_remove_block_group()
10540 void btrfs_delete_unused_bgs(struct btrfs_fs_info *fs_info) in btrfs_delete_unused_bgs()
10704 int btrfs_init_space_info(struct btrfs_fs_info *fs_info) in btrfs_init_space_info()
10741 int btrfs_error_unpin_extent_range(struct btrfs_fs_info *fs_info, in btrfs_error_unpin_extent_range()
10784 struct btrfs_fs_info *fs_info = device->fs_info; in btrfs_trim_free_extents() local
10834 int btrfs_trim_fs(struct btrfs_fs_info *fs_info, struct fstrim_range *range) in btrfs_trim_fs()
10955 struct btrfs_fs_info *fs_info = bg->fs_info; in btrfs_mark_bg_unused() local