Home
last modified time | relevance | path

Searched refs:caching_ctl (Results 1 - 10 of 10) sorted by relevance

/kernel/linux/linux-5.10/fs/btrfs/
H A Dblock-group.c373 if (!cache->caching_ctl) { in btrfs_get_caching_control()
378 ctl = cache->caching_ctl; in btrfs_get_caching_control()
406 struct btrfs_caching_control *caching_ctl; in btrfs_wait_block_group_cache_progress() local
408 caching_ctl = btrfs_get_caching_control(cache); in btrfs_wait_block_group_cache_progress()
409 if (!caching_ctl) in btrfs_wait_block_group_cache_progress()
412 wait_event(caching_ctl->wait, btrfs_block_group_done(cache) || in btrfs_wait_block_group_cache_progress()
415 btrfs_put_caching_control(caching_ctl); in btrfs_wait_block_group_cache_progress()
420 struct btrfs_caching_control *caching_ctl; in btrfs_wait_block_group_cache_done() local
423 caching_ctl = btrfs_get_caching_control(cache); in btrfs_wait_block_group_cache_done()
424 if (!caching_ctl) in btrfs_wait_block_group_cache_done()
500 load_extent_tree_free(struct btrfs_caching_control *caching_ctl) load_extent_tree_free() argument
639 struct btrfs_caching_control *caching_ctl; caching_thread() local
697 struct btrfs_caching_control *caching_ctl; btrfs_cache_block_group() local
917 struct btrfs_caching_control *caching_ctl = NULL; btrfs_remove_block_group() local
3338 struct btrfs_caching_control *caching_ctl; btrfs_free_block_groups() local
[all...]
H A Dfree-space-tree.c1399 static int load_free_space_bitmaps(struct btrfs_caching_control *caching_ctl, in load_free_space_bitmaps() argument
1415 block_group = caching_ctl->block_group; in load_free_space_bitmaps()
1436 caching_ctl->progress = key.objectid; in load_free_space_bitmaps()
1449 wake_up(&caching_ctl->wait); in load_free_space_bitmaps()
1473 caching_ctl->progress = (u64)-1; in load_free_space_bitmaps()
1480 static int load_free_space_extents(struct btrfs_caching_control *caching_ctl, in load_free_space_extents() argument
1493 block_group = caching_ctl->block_group; in load_free_space_extents()
1514 caching_ctl->progress = key.objectid; in load_free_space_extents()
1520 wake_up(&caching_ctl->wait); in load_free_space_extents()
1535 caching_ctl in load_free_space_extents()
1542 load_free_space_tree(struct btrfs_caching_control *caching_ctl) load_free_space_tree() argument
[all...]
H A Dfree-space-tree.h22 int load_free_space_tree(struct btrfs_caching_control *caching_ctl);
H A Dblock-group.h103 struct btrfs_caching_control *caching_ctl; member
H A Dtransaction.c158 struct btrfs_caching_control *caching_ctl, *next; in switch_commit_roots() local
211 list_for_each_entry_safe(caching_ctl, next, in switch_commit_roots()
213 struct btrfs_block_group *cache = caching_ctl->block_group; in switch_commit_roots()
217 list_del_init(&caching_ctl->list); in switch_commit_roots()
218 btrfs_put_caching_control(caching_ctl); in switch_commit_roots()
220 cache->last_byte_to_unpin = caching_ctl->progress; in switch_commit_roots()
H A Dextent-tree.c2617 struct btrfs_caching_control *caching_ctl; in __exclude_logged_extent() local
2624 caching_ctl = btrfs_get_caching_control(block_group); in __exclude_logged_extent()
2626 if (!caching_ctl) { in __exclude_logged_extent()
2631 mutex_lock(&caching_ctl->mutex); in __exclude_logged_extent()
2633 if (start >= caching_ctl->progress) { in __exclude_logged_extent()
2636 } else if (start + num_bytes <= caching_ctl->progress) { in __exclude_logged_extent()
2640 num_bytes = caching_ctl->progress - start; in __exclude_logged_extent()
2647 caching_ctl->progress; in __exclude_logged_extent()
2648 start = caching_ctl->progress; in __exclude_logged_extent()
2653 mutex_unlock(&caching_ctl in __exclude_logged_extent()
[all...]
/kernel/linux/linux-6.6/fs/btrfs/
H A Dblock-group.c410 if (!cache->caching_ctl) { in btrfs_get_caching_control()
415 ctl = cache->caching_ctl; in btrfs_get_caching_control()
443 struct btrfs_caching_control *caching_ctl; in btrfs_wait_block_group_cache_progress() local
446 caching_ctl = btrfs_get_caching_control(cache); in btrfs_wait_block_group_cache_progress()
447 if (!caching_ctl) in btrfs_wait_block_group_cache_progress()
456 progress = atomic_read(&caching_ctl->progress); in btrfs_wait_block_group_cache_progress()
458 wait_event(caching_ctl->wait, btrfs_block_group_done(cache) || in btrfs_wait_block_group_cache_progress()
459 (progress != atomic_read(&caching_ctl->progress) && in btrfs_wait_block_group_cache_progress()
462 btrfs_put_caching_control(caching_ctl); in btrfs_wait_block_group_cache_progress()
466 struct btrfs_caching_control *caching_ctl) in btrfs_caching_ctl_wait_done()
465 btrfs_caching_ctl_wait_done(struct btrfs_block_group *cache, struct btrfs_caching_control *caching_ctl) btrfs_caching_ctl_wait_done() argument
474 struct btrfs_caching_control *caching_ctl; btrfs_wait_block_group_cache_done() local
580 sample_block_group_extent_item(struct btrfs_caching_control *caching_ctl, struct btrfs_block_group *block_group, int index, int max_index, struct btrfs_key *found_key) sample_block_group_extent_item() argument
669 load_block_group_size_class(struct btrfs_caching_control *caching_ctl, struct btrfs_block_group *block_group) load_block_group_size_class() argument
702 load_extent_tree_free(struct btrfs_caching_control *caching_ctl) load_extent_tree_free() argument
848 struct btrfs_caching_control *caching_ctl; caching_thread() local
921 struct btrfs_caching_control *caching_ctl = NULL; btrfs_cache_block_group() local
1061 struct btrfs_caching_control *caching_ctl = NULL; btrfs_remove_block_group() local
4340 struct btrfs_caching_control *caching_ctl; btrfs_free_block_groups() local
[all...]
H A Dfree-space-tree.h23 int load_free_space_tree(struct btrfs_caching_control *caching_ctl);
H A Dfree-space-tree.c1476 static int load_free_space_bitmaps(struct btrfs_caching_control *caching_ctl, in load_free_space_bitmaps() argument
1492 block_group = caching_ctl->block_group; in load_free_space_bitmaps()
1530 wake_up(&caching_ctl->wait); in load_free_space_bitmaps()
1560 static int load_free_space_extents(struct btrfs_caching_control *caching_ctl, in load_free_space_extents() argument
1573 block_group = caching_ctl->block_group; in load_free_space_extents()
1604 wake_up(&caching_ctl->wait); in load_free_space_extents()
1624 int load_free_space_tree(struct btrfs_caching_control *caching_ctl) in load_free_space_tree() argument
1632 block_group = caching_ctl->block_group; in load_free_space_tree()
1660 ret = load_free_space_bitmaps(caching_ctl, path, extent_count); in load_free_space_tree()
1662 ret = load_free_space_extents(caching_ctl, pat in load_free_space_tree()
[all...]
H A Dblock-group.h151 struct btrfs_caching_control *caching_ctl; member

Completed in 16 milliseconds