Home
last modified time | relevance | path

Searched refs:caching_ctl (Results 1 – 5 of 5) sorted by relevance

/Linux-v5.10/fs/btrfs/
Dblock-group.c366 if (!cache->caching_ctl) { in btrfs_get_caching_control()
371 ctl = cache->caching_ctl; in btrfs_get_caching_control()
399 struct btrfs_caching_control *caching_ctl; in btrfs_wait_block_group_cache_progress() local
401 caching_ctl = btrfs_get_caching_control(cache); in btrfs_wait_block_group_cache_progress()
402 if (!caching_ctl) in btrfs_wait_block_group_cache_progress()
405 wait_event(caching_ctl->wait, btrfs_block_group_done(cache) || in btrfs_wait_block_group_cache_progress()
408 btrfs_put_caching_control(caching_ctl); in btrfs_wait_block_group_cache_progress()
413 struct btrfs_caching_control *caching_ctl; in btrfs_wait_block_group_cache_done() local
416 caching_ctl = btrfs_get_caching_control(cache); in btrfs_wait_block_group_cache_done()
417 if (!caching_ctl) in btrfs_wait_block_group_cache_done()
[all …]
Dfree-space-tree.c1391 static int load_free_space_bitmaps(struct btrfs_caching_control *caching_ctl, in load_free_space_bitmaps() argument
1407 block_group = caching_ctl->block_group; in load_free_space_bitmaps()
1428 caching_ctl->progress = key.objectid; in load_free_space_bitmaps()
1441 wake_up(&caching_ctl->wait); in load_free_space_bitmaps()
1465 caching_ctl->progress = (u64)-1; in load_free_space_bitmaps()
1472 static int load_free_space_extents(struct btrfs_caching_control *caching_ctl, in load_free_space_extents() argument
1485 block_group = caching_ctl->block_group; in load_free_space_extents()
1506 caching_ctl->progress = key.objectid; in load_free_space_extents()
1512 wake_up(&caching_ctl->wait); in load_free_space_extents()
1527 caching_ctl->progress = (u64)-1; in load_free_space_extents()
[all …]
Dfree-space-tree.h22 int load_free_space_tree(struct btrfs_caching_control *caching_ctl);
Dextent-tree.c2652 struct btrfs_caching_control *caching_ctl; in __exclude_logged_extent() local
2659 caching_ctl = btrfs_get_caching_control(block_group); in __exclude_logged_extent()
2661 if (!caching_ctl) { in __exclude_logged_extent()
2666 mutex_lock(&caching_ctl->mutex); in __exclude_logged_extent()
2668 if (start >= caching_ctl->progress) { in __exclude_logged_extent()
2671 } else if (start + num_bytes <= caching_ctl->progress) { in __exclude_logged_extent()
2675 num_bytes = caching_ctl->progress - start; in __exclude_logged_extent()
2682 caching_ctl->progress; in __exclude_logged_extent()
2683 start = caching_ctl->progress; in __exclude_logged_extent()
2688 mutex_unlock(&caching_ctl->mutex); in __exclude_logged_extent()
[all …]
Dblock-group.h103 struct btrfs_caching_control *caching_ctl; member