Lines Matching defs:cache
38 void set_free_space_tree_thresholds(struct btrfs_block_group *cache)
44 if (WARN_ON(cache->length == 0))
45 btrfs_warn(cache->fs_info, "block group %llu length is zero",
46 cache->start);
52 bitmap_range = cache->fs_info->sectorsize * BTRFS_FREE_SPACE_BITMAP_BITS;
53 num_bitmaps = div_u64(cache->length + bitmap_range - 1, bitmap_range);
56 cache->bitmap_high_thresh = div_u64(total_bitmap_size,
63 if (cache->bitmap_high_thresh > 100)
64 cache->bitmap_low_thresh = cache->bitmap_high_thresh - 100;
66 cache->bitmap_low_thresh = 0;
1204 * root will be safe, so we can cache from the free space tree now.