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()
1479 struct btrfs_fs_info *fs_info = trans->fs_info; in lookup_inline_extent_backref() local
1670 void setup_inline_extent_backref(struct btrfs_fs_info *fs_info, in setup_inline_extent_backref()
1768 struct btrfs_fs_info *fs_info = leaf->fs_info; in update_inline_extent_backref() local
1967 int btrfs_discard_extent(struct btrfs_fs_info *fs_info, u64 bytenr, in btrfs_discard_extent()
2040 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_inc_extent_ref() local
2230 struct btrfs_fs_info *fs_info = trans->fs_info; in run_delayed_extent_op() local
2440 struct btrfs_fs_info *fs_info = trans->fs_info; in cleanup_ref_head() local
2523 struct btrfs_fs_info *fs_info = trans->fs_info; in __btrfs_run_delayed_refs() local
2724 static inline u64 heads_to_leaves(struct btrfs_fs_info *fs_info, u64 heads) in heads_to_leaves()
2744 u64 btrfs_csum_bytes_to_leaves(struct btrfs_fs_info *fs_info, u64 csum_bytes) in btrfs_csum_bytes_to_leaves()
2760 struct btrfs_fs_info *fs_info) in btrfs_check_space_for_delayed_refs()
2797 struct btrfs_fs_info *fs_info) in btrfs_should_throttle_delayed_refs()
2835 struct btrfs_fs_info *fs_info = async->root->fs_info; in delayed_ref_async_start() local
2872 int btrfs_async_run_delayed_refs(struct btrfs_fs_info *fs_info, in btrfs_async_run_delayed_refs()
2919 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_run_delayed_refs() local
2975 struct btrfs_fs_info *fs_info, in btrfs_set_disk_extent_flags()
3082 struct btrfs_fs_info *fs_info = root->fs_info; in check_committed_ref() local
3185 struct btrfs_fs_info *fs_info = root->fs_info; in __btrfs_mod_ref() local
3269 struct btrfs_fs_info *fs_info, in write_one_cache_group()
3296 next_block_group(struct btrfs_fs_info *fs_info, in next_block_group()
3327 struct btrfs_fs_info *fs_info = block_group->fs_info; in cache_save_setup() local
3486 struct btrfs_fs_info *fs_info) in btrfs_setup_space_cache()
3525 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_start_dirty_block_groups() local
3687 struct btrfs_fs_info *fs_info) in btrfs_write_dirty_block_groups()
3814 int btrfs_extent_readonly(struct btrfs_fs_info *fs_info, u64 bytenr) in btrfs_extent_readonly()
3827 bool btrfs_inc_nocow_writers(struct btrfs_fs_info *fs_info, u64 bytenr) in btrfs_inc_nocow_writers()
3851 void btrfs_dec_nocow_writers(struct btrfs_fs_info *fs_info, u64 bytenr) in btrfs_dec_nocow_writers()
3959 static void set_avail_alloc_bits(struct btrfs_fs_info *fs_info, u64 flags) in set_avail_alloc_bits()
3980 static u64 get_restripe_target(struct btrfs_fs_info *fs_info, u64 flags) in get_restripe_target()
4009 static u64 btrfs_reduce_alloc_profile(struct btrfs_fs_info *fs_info, u64 flags) in btrfs_reduce_alloc_profile()
4054 static u64 get_alloc_profile(struct btrfs_fs_info *fs_info, u64 orig_flags) in get_alloc_profile()
4076 struct btrfs_fs_info *fs_info = root->fs_info; in get_alloc_profile_by_root() local
4091 u64 btrfs_data_alloc_profile(struct btrfs_fs_info *fs_info) in btrfs_data_alloc_profile()
4096 u64 btrfs_metadata_alloc_profile(struct btrfs_fs_info *fs_info) in btrfs_metadata_alloc_profile()
4101 u64 btrfs_system_alloc_profile(struct btrfs_fs_info *fs_info) in btrfs_system_alloc_profile()
4118 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_alloc_data_chunk_ondemand() local
4242 struct btrfs_fs_info *fs_info = btrfs_sb(inode->i_sb); in btrfs_check_data_free_space() local
4274 struct btrfs_fs_info *fs_info = btrfs_sb(inode->i_sb); in btrfs_free_reserved_data_space_noquota() local
4332 static int should_alloc_chunk(struct btrfs_fs_info *fs_info, in should_alloc_chunk()
4367 static u64 get_profile_num_devs(struct btrfs_fs_info *fs_info, u64 type) in get_profile_num_devs()
4391 struct btrfs_fs_info *fs_info = trans->fs_info; in check_system_chunk() local
4454 struct btrfs_fs_info *fs_info = trans->fs_info; in do_chunk_alloc() local
4571 static int can_overcommit(struct btrfs_fs_info *fs_info, in can_overcommit()
4634 static void btrfs_writeback_inodes_sb_nr(struct btrfs_fs_info *fs_info, in btrfs_writeback_inodes_sb_nr()
4656 static inline u64 calc_reclaim_items_nr(struct btrfs_fs_info *fs_info, in calc_reclaim_items_nr()
4674 static void shrink_delalloc(struct btrfs_fs_info *fs_info, u64 to_reclaim, in shrink_delalloc()
4763 static int may_commit_transaction(struct btrfs_fs_info *fs_info, in may_commit_transaction()
4827 static void flush_space(struct btrfs_fs_info *fs_info, in flush_space()
4884 btrfs_calc_reclaim_metadata_size(struct btrfs_fs_info *fs_info, in btrfs_calc_reclaim_metadata_size()
4922 static inline int need_do_async_reclaim(struct btrfs_fs_info *fs_info, in need_do_async_reclaim()
4959 struct btrfs_fs_info *fs_info; in btrfs_async_reclaim_metadata_space() local
5019 static void priority_reclaim_metadata_space(struct btrfs_fs_info *fs_info, in priority_reclaim_metadata_space()
5055 static int wait_reserve_ticket(struct btrfs_fs_info *fs_info, in wait_reserve_ticket()
5106 static int __reserve_metadata_bytes(struct btrfs_fs_info *fs_info, in __reserve_metadata_bytes()
5231 struct btrfs_fs_info *fs_info = root->fs_info; in reserve_metadata_bytes() local
5260 struct btrfs_fs_info *fs_info = root->fs_info; in get_block_rsv() local
5304 int btrfs_cond_migrate_bytes(struct btrfs_fs_info *fs_info, in btrfs_cond_migrate_bytes()
5333 static void space_info_add_old_bytes(struct btrfs_fs_info *fs_info, in space_info_add_old_bytes()
5393 static void space_info_add_new_bytes(struct btrfs_fs_info *fs_info, in space_info_add_new_bytes()
5430 static u64 block_rsv_release_bytes(struct btrfs_fs_info *fs_info, in block_rsv_release_bytes()
5507 void btrfs_init_metadata_block_rsv(struct btrfs_fs_info *fs_info, in btrfs_init_metadata_block_rsv()
5516 struct btrfs_block_rsv *btrfs_alloc_block_rsv(struct btrfs_fs_info *fs_info, in btrfs_alloc_block_rsv()
5529 void btrfs_free_block_rsv(struct btrfs_fs_info *fs_info, in btrfs_free_block_rsv()
5664 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_inode_rsv_release() local
5687 void btrfs_block_rsv_release(struct btrfs_fs_info *fs_info, in btrfs_block_rsv_release()
5699 static void update_global_block_rsv(struct btrfs_fs_info *fs_info) in update_global_block_rsv()
5749 static void init_global_block_rsv(struct btrfs_fs_info *fs_info) in init_global_block_rsv()
5773 static void release_global_block_rsv(struct btrfs_fs_info *fs_info) in release_global_block_rsv()
5792 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_trans_release_chunk_metadata() local
5825 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_subvolume_reserve_metadata() local
5852 void btrfs_subvolume_release_metadata(struct btrfs_fs_info *fs_info, in btrfs_subvolume_release_metadata()
5858 static void btrfs_calculate_inode_block_rsv_size(struct btrfs_fs_info *fs_info, in btrfs_calculate_inode_block_rsv_size()
5892 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_delalloc_reserve_metadata() local
5965 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_delalloc_release_metadata() local
5993 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_delalloc_release_extents() local
6169 static u64 first_logical_byte(struct btrfs_fs_info *fs_info, u64 search_start) in first_logical_byte()
6191 static int pin_down_extent(struct btrfs_fs_info *fs_info, in pin_down_extent()
6218 int btrfs_pin_extent(struct btrfs_fs_info *fs_info, in btrfs_pin_extent()
6235 int btrfs_pin_extent_for_log_replay(struct btrfs_fs_info *fs_info, in btrfs_pin_extent_for_log_replay()
6261 static int __exclude_logged_extent(struct btrfs_fs_info *fs_info, in __exclude_logged_extent()
6307 int btrfs_exclude_logged_extents(struct btrfs_fs_info *fs_info, in btrfs_exclude_logged_extents()
6345 void btrfs_dec_block_group_reservations(struct btrfs_fs_info *fs_info, in btrfs_dec_block_group_reservations()
6452 void btrfs_prepare_extent_commit(struct btrfs_fs_info *fs_info) in btrfs_prepare_extent_commit()
6487 fetch_cluster_info(struct btrfs_fs_info *fs_info, in fetch_cluster_info()
6511 static int unpin_extent_range(struct btrfs_fs_info *fs_info, in unpin_extent_range()
6615 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_finish_extent_commit() local
6994 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_free_tree_block() local
7061 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_free_extent() local
7235 static noinline int find_free_extent(struct btrfs_fs_info *fs_info, in find_free_extent()
7728 static void dump_space_info(struct btrfs_fs_info *fs_info, in dump_space_info()
7817 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_reserve_extent() local
7854 static int __btrfs_free_reserved_extent(struct btrfs_fs_info *fs_info, in __btrfs_free_reserved_extent()
7882 int btrfs_free_reserved_extent(struct btrfs_fs_info *fs_info, in btrfs_free_reserved_extent()
7888 int btrfs_free_and_pin_reserved_extent(struct btrfs_fs_info *fs_info, in btrfs_free_and_pin_reserved_extent()
7899 struct btrfs_fs_info *fs_info = trans->fs_info; in alloc_reserved_file_extent() local
7972 struct btrfs_fs_info *fs_info = trans->fs_info; in alloc_reserved_tree_block() local
8091 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_alloc_logged_file_extent() local
8129 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_init_new_buffer() local
8191 struct btrfs_fs_info *fs_info = root->fs_info; in use_block_rsv() local
8242 static void unuse_block_rsv(struct btrfs_fs_info *fs_info, in unuse_block_rsv()
8260 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_alloc_tree_block() local
8365 struct btrfs_fs_info *fs_info = root->fs_info; in reada_walk_down() local
8453 struct btrfs_fs_info *fs_info = root->fs_info; in walk_down_proc() local
8535 struct btrfs_fs_info *fs_info = root->fs_info; in do_walk_down() local
8716 struct btrfs_fs_info *fs_info = root->fs_info; in walk_up_proc() local
8900 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_drop_snapshot() local
9125 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_drop_subtree() local
9185 static u64 update_block_group_flags(struct btrfs_fs_info *fs_info, u64 flags) in update_block_group_flags()
9281 struct btrfs_fs_info *fs_info = cache->fs_info; in btrfs_inc_block_group_ro() local
9417 int btrfs_can_relocate(struct btrfs_fs_info *fs_info, u64 bytenr) in btrfs_can_relocate()
9562 static int find_first_block_group(struct btrfs_fs_info *fs_info, in find_first_block_group()
9783 void btrfs_add_raid_kobjects(struct btrfs_fs_info *fs_info) in btrfs_add_raid_kobjects()
9814 struct btrfs_fs_info *fs_info = cache->fs_info; in link_block_group() local
9842 btrfs_create_block_group_cache(struct btrfs_fs_info *fs_info, in btrfs_create_block_group_cache()
9888 static int check_chunk_block_group_mappings(struct btrfs_fs_info *fs_info) in check_chunk_block_group_mappings()
10114 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_create_pending_block_groups() local
10154 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_make_block_group() local
10228 static void clear_avail_alloc_bits(struct btrfs_fs_info *fs_info, u64 flags) in clear_avail_alloc_bits()
10246 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_remove_block_group() local
10543 btrfs_start_trans_remove_block_group(struct btrfs_fs_info *fs_info, in btrfs_start_trans_remove_block_group()
10587 void btrfs_delete_unused_bgs(struct btrfs_fs_info *fs_info) in btrfs_delete_unused_bgs()
10751 int btrfs_init_space_info(struct btrfs_fs_info *fs_info) in btrfs_init_space_info()
10788 int btrfs_error_unpin_extent_range(struct btrfs_fs_info *fs_info, in btrfs_error_unpin_extent_range()
10837 struct btrfs_fs_info *fs_info = device->fs_info; in btrfs_trim_free_extents() local
10903 int btrfs_trim_fs(struct btrfs_fs_info *fs_info, struct fstrim_range *range) in btrfs_trim_fs()
11034 struct btrfs_fs_info *fs_info = bg->fs_info; in btrfs_mark_bg_unused() local