Lines Matching defs:cache
19 void set_free_space_tree_thresholds(struct btrfs_block_group *cache)
25 if (WARN_ON(cache->length == 0))
26 btrfs_warn(cache->fs_info, "block group %llu length is zero",
27 cache->start);
33 bitmap_range = cache->fs_info->sectorsize * BTRFS_FREE_SPACE_BITMAP_BITS;
34 num_bitmaps = div_u64(cache->length + bitmap_range - 1, bitmap_range);
37 cache->bitmap_high_thresh = div_u64(total_bitmap_size,
44 if (cache->bitmap_high_thresh > 100)
45 cache->bitmap_low_thresh = cache->bitmap_high_thresh - 100;
47 cache->bitmap_low_thresh = 0;
1181 * root will be safe, so we can cache from the free space tree now.