Home
last modified time | relevance | path

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

/Linux-v5.4/fs/btrfs/
Dblock-group.c365 if (!cache->caching_ctl) { in btrfs_get_caching_control()
370 ctl = cache->caching_ctl; in btrfs_get_caching_control()
398 struct btrfs_caching_control *caching_ctl; in btrfs_wait_block_group_cache_progress() local
400 caching_ctl = btrfs_get_caching_control(cache); in btrfs_wait_block_group_cache_progress()
401 if (!caching_ctl) in btrfs_wait_block_group_cache_progress()
404 wait_event(caching_ctl->wait, btrfs_block_group_cache_done(cache) || in btrfs_wait_block_group_cache_progress()
407 btrfs_put_caching_control(caching_ctl); in btrfs_wait_block_group_cache_progress()
412 struct btrfs_caching_control *caching_ctl; in btrfs_wait_block_group_cache_done() local
415 caching_ctl = btrfs_get_caching_control(cache); in btrfs_wait_block_group_cache_done()
416 if (!caching_ctl) in btrfs_wait_block_group_cache_done()
[all …]
Dfree-space-tree.c1390 static int load_free_space_bitmaps(struct btrfs_caching_control *caching_ctl, in load_free_space_bitmaps() argument
1406 block_group = caching_ctl->block_group; in load_free_space_bitmaps()
1427 caching_ctl->progress = key.objectid; in load_free_space_bitmaps()
1440 wake_up(&caching_ctl->wait); in load_free_space_bitmaps()
1464 caching_ctl->progress = (u64)-1; in load_free_space_bitmaps()
1471 static int load_free_space_extents(struct btrfs_caching_control *caching_ctl, in load_free_space_extents() argument
1484 block_group = caching_ctl->block_group; in load_free_space_extents()
1505 caching_ctl->progress = key.objectid; in load_free_space_extents()
1511 wake_up(&caching_ctl->wait); in load_free_space_extents()
1526 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.c2644 struct btrfs_caching_control *caching_ctl; in __exclude_logged_extent() local
2651 caching_ctl = btrfs_get_caching_control(block_group); in __exclude_logged_extent()
2653 if (!caching_ctl) { in __exclude_logged_extent()
2658 mutex_lock(&caching_ctl->mutex); in __exclude_logged_extent()
2660 if (start >= caching_ctl->progress) { in __exclude_logged_extent()
2663 } else if (start + num_bytes <= caching_ctl->progress) { in __exclude_logged_extent()
2667 num_bytes = caching_ctl->progress - start; in __exclude_logged_extent()
2674 caching_ctl->progress; in __exclude_logged_extent()
2675 start = caching_ctl->progress; in __exclude_logged_extent()
2680 mutex_unlock(&caching_ctl->mutex); in __exclude_logged_extent()
[all …]
Dblock-group.h89 struct btrfs_caching_control *caching_ctl; member