Home
last modified time | relevance | path

Searched refs:btrfs_block_group_cache (Results 1 – 25 of 25) sorted by relevance

/fs/btrfs/
Dblock-group.h37 struct btrfs_block_group_cache *block_group;
45 struct btrfs_block_group_cache { struct
162 struct btrfs_block_group_cache *block_group) in btrfs_should_fragment_free_space() argument
173 struct btrfs_block_group_cache *btrfs_lookup_first_block_group(
175 struct btrfs_block_group_cache *btrfs_lookup_block_group(
177 struct btrfs_block_group_cache *btrfs_next_block_group(
178 struct btrfs_block_group_cache *cache);
179 void btrfs_get_block_group(struct btrfs_block_group_cache *cache);
180 void btrfs_put_block_group(struct btrfs_block_group_cache *cache);
183 void btrfs_wait_block_group_reservations(struct btrfs_block_group_cache *bg);
[all …]
Dfree-space-cache.h54 struct btrfs_block_group_cache *block_group,
57 struct btrfs_block_group_cache *block_group,
63 struct btrfs_block_group_cache *block_group,
65 int load_free_space_cache(struct btrfs_block_group_cache *block_group);
67 struct btrfs_block_group_cache *block_group,
70 struct btrfs_block_group_cache *block_group,
84 void btrfs_init_free_space_ctl(struct btrfs_block_group_cache *block_group);
88 int btrfs_add_free_space(struct btrfs_block_group_cache *block_group,
90 int btrfs_remove_free_space(struct btrfs_block_group_cache *block_group,
93 void btrfs_remove_free_space_cache(struct btrfs_block_group_cache
[all …]
Dfree-space-tree.h19 void set_free_space_tree_thresholds(struct btrfs_block_group_cache *block_group);
24 struct btrfs_block_group_cache *block_group);
26 struct btrfs_block_group_cache *block_group);
35 struct btrfs_block_group_cache *block_group,
38 struct btrfs_block_group_cache *block_group,
41 struct btrfs_block_group_cache *block_group,
44 struct btrfs_block_group_cache *block_group,
47 struct btrfs_block_group_cache *block_group,
49 int free_space_test_bit(struct btrfs_block_group_cache *block_group,
Dblock-group.c123 void btrfs_get_block_group(struct btrfs_block_group_cache *cache) in btrfs_get_block_group()
128 void btrfs_put_block_group(struct btrfs_block_group_cache *cache) in btrfs_put_block_group()
152 struct btrfs_block_group_cache *block_group) in btrfs_add_block_group_cache()
156 struct btrfs_block_group_cache *cache; in btrfs_add_block_group_cache()
163 cache = rb_entry(parent, struct btrfs_block_group_cache, in btrfs_add_block_group_cache()
191 static struct btrfs_block_group_cache *block_group_cache_tree_search( in block_group_cache_tree_search()
194 struct btrfs_block_group_cache *cache, *ret = NULL; in block_group_cache_tree_search()
202 cache = rb_entry(n, struct btrfs_block_group_cache, in block_group_cache_tree_search()
235 struct btrfs_block_group_cache *btrfs_lookup_first_block_group( in btrfs_lookup_first_block_group()
244 struct btrfs_block_group_cache *btrfs_lookup_block_group( in btrfs_lookup_block_group()
[all …]
Dfree-space-tree.c16 struct btrfs_block_group_cache *block_group,
19 void set_free_space_tree_thresholds(struct btrfs_block_group_cache *cache) in set_free_space_tree_thresholds()
48 struct btrfs_block_group_cache *block_group, in add_new_free_space_info()
81 struct btrfs_block_group_cache *block_group, in search_free_space_info()
183 struct btrfs_block_group_cache *block_group, in convert_free_space_to_bitmaps()
323 struct btrfs_block_group_cache *block_group, in convert_free_space_to_extents()
456 struct btrfs_block_group_cache *block_group, in update_free_space_extent_count()
494 int free_space_test_bit(struct btrfs_block_group_cache *block_group, in free_space_test_bit()
516 static void free_space_set_bits(struct btrfs_block_group_cache *block_group, in free_space_set_bits()
584 struct btrfs_block_group_cache *block_group, in modify_free_space_bitmap()
[all …]
Dfree-space-cache.c95 struct btrfs_block_group_cache *block_group, in lookup_free_space_inode()
193 struct btrfs_block_group_cache *block_group, in create_free_space_inode()
227 struct btrfs_block_group_cache *block_group, in btrfs_truncate_free_space_cache()
828 int load_free_space_cache(struct btrfs_block_group_cache *block_group) in load_free_space_cache()
927 struct btrfs_block_group_cache *block_group, in write_cache_extent_entries()
1055 struct btrfs_block_group_cache *block_group, in write_pinned_extent_entries()
1155 struct btrfs_block_group_cache *block_group, in __btrfs_wait_cache_io()
1223 struct btrfs_block_group_cache *block_group, in btrfs_wait_cache_io()
1244 struct btrfs_block_group_cache *block_group, in __btrfs_write_out_cache()
1383 struct btrfs_block_group_cache *block_group, in btrfs_write_out_cache()
[all …]
Dextent-tree.c58 static int block_group_bits(struct btrfs_block_group_cache *cache, u64 bits) in block_group_bits()
74 void btrfs_free_excluded_extents(struct btrfs_block_group_cache *cache) in btrfs_free_excluded_extents()
2555 struct btrfs_block_group_cache *block_group; in btrfs_extent_readonly()
2585 struct btrfs_block_group_cache *cache; in first_logical_byte()
2605 static int pin_down_extent(struct btrfs_block_group_cache *cache, in pin_down_extent()
2635 struct btrfs_block_group_cache *cache; in btrfs_pin_extent()
2652 struct btrfs_block_group_cache *cache; in btrfs_pin_extent_for_log_replay()
2679 struct btrfs_block_group_cache *block_group; in __exclude_logged_extent()
2756 btrfs_inc_block_group_reservations(struct btrfs_block_group_cache *bg) in btrfs_inc_block_group_reservations()
2765 struct btrfs_block_group_cache *cache; in btrfs_prepare_extent_commit()
[all …]
Dsysfs.h35 void btrfs_sysfs_add_block_group_type(struct btrfs_block_group_cache *cache);
Dqgroup.h412 struct btrfs_block_group_cache *bg,
Dsysfs.c375 struct btrfs_block_group_cache *block_group; in raid_bytes_show()
825 void btrfs_sysfs_add_block_group_type(struct btrfs_block_group_cache *cache) in btrfs_sysfs_add_block_group_type()
Dctree.h41 struct btrfs_block_group_cache;
416 struct btrfs_block_group_cache *block_group;
2404 void btrfs_free_excluded_extents(struct btrfs_block_group_cache *cache);
2460 void btrfs_get_block_group_trimming(struct btrfs_block_group_cache *cache);
2461 void btrfs_put_block_group_trimming(struct btrfs_block_group_cache *cache);
Dtransaction.c68 struct btrfs_block_group_cache *cache; in btrfs_put_transaction()
71 struct btrfs_block_group_cache, in btrfs_put_transaction()
1883 struct btrfs_block_group_cache *block_group, *tmp; in btrfs_cleanup_pending_block_groups()
Drelocation.c150 struct btrfs_block_group_cache *block_group;
1615 struct btrfs_block_group_cache *block_group) in in_block_group()
3643 struct btrfs_block_group_cache *block_group, in delete_block_group_cache()
4318 struct btrfs_block_group_cache *group) in create_reloc_inode()
4394 struct btrfs_block_group_cache *block_group) in describe_relocation()
4410 struct btrfs_block_group_cache *bg; in btrfs_relocate_block_group()
Dscrub.c392 static u64 get_full_stripe_logical(struct btrfs_block_group_cache *cache, in get_full_stripe_logical()
426 struct btrfs_block_group_cache *bg_cache; in lock_full_stripe()
473 struct btrfs_block_group_cache *bg_cache; in unlock_full_stripe()
3420 struct btrfs_block_group_cache *cache) in scrub_chunk()
3484 struct btrfs_block_group_cache *cache; in scrub_enumerate_chunks()
Ddisk-io.c4529 static void btrfs_cleanup_bg_io(struct btrfs_block_group_cache *cache) in btrfs_cleanup_bg_io()
4552 struct btrfs_block_group_cache *cache; in btrfs_cleanup_dirty_bgs()
4557 struct btrfs_block_group_cache, in btrfs_cleanup_dirty_bgs()
4585 struct btrfs_block_group_cache, in btrfs_cleanup_dirty_bgs()
Dspace-info.c288 struct btrfs_block_group_cache *cache; in btrfs_dump_space_info()
Dreada.c230 struct btrfs_block_group_cache *cache = NULL; in reada_find_zone()
Dvolumes.c3334 struct btrfs_block_group_cache *cache; in btrfs_may_alloc_data_chunk()
3542 struct btrfs_block_group_cache *cache; in chunk_usage_range_filter()
3575 struct btrfs_block_group_cache *cache; in chunk_usage_filter()
Dqgroup.c4151 struct btrfs_block_group_cache *bg, in btrfs_qgroup_add_swapped_blocks()
Dinode.c3175 struct btrfs_block_group_cache *cache; in btrfs_release_delalloc_bytes()
10962 struct btrfs_block_group_cache *bg; in btrfs_swap_activate()
Dioctl.c4134 struct btrfs_block_group_cache *block_group; in get_block_group_info()
/fs/btrfs/tests/
Dfree-space-tree-tests.c21 struct btrfs_block_group_cache *cache, in __check_free_space_extents()
110 struct btrfs_block_group_cache *cache, in check_free_space_extents()
153 struct btrfs_block_group_cache *cache, in test_empty_block_group()
167 struct btrfs_block_group_cache *cache, in test_remove_all()
188 struct btrfs_block_group_cache *cache, in test_remove_beginning()
212 struct btrfs_block_group_cache *cache, in test_remove_end()
236 struct btrfs_block_group_cache *cache, in test_remove_middle()
261 struct btrfs_block_group_cache *cache, in test_merge_left()
299 struct btrfs_block_group_cache *cache, in test_merge_right()
338 struct btrfs_block_group_cache *cache, in test_merge_both()
[all …]
Dfree-space-tests.c20 static int test_extents(struct btrfs_block_group_cache *cache) in test_extents()
90 static int test_bitmaps(struct btrfs_block_group_cache *cache, in test_bitmaps()
159 static int test_bitmaps_and_extents(struct btrfs_block_group_cache *cache, in test_bitmaps_and_extents()
334 check_num_extents_and_bitmaps(const struct btrfs_block_group_cache *cache, in check_num_extents_and_bitmaps()
354 static int check_cache_empty(struct btrfs_block_group_cache *cache) in check_cache_empty()
396 test_steal_space_from_bitmap_to_extent(struct btrfs_block_group_cache *cache, in test_steal_space_from_bitmap_to_extent()
832 struct btrfs_block_group_cache *cache; in btrfs_test_free_space_cache()
Dbtrfs-tests.h44 struct btrfs_block_group_cache *
46 void btrfs_free_dummy_block_group(struct btrfs_block_group_cache *cache);
Dbtrfs-tests.c204 struct btrfs_block_group_cache *
208 struct btrfs_block_group_cache *cache; in btrfs_alloc_dummy_block_group()
235 void btrfs_free_dummy_block_group(struct btrfs_block_group_cache *cache) in btrfs_free_dummy_block_group()