Lines Matching defs:cache
3408 struct btrfs_block_group *cache;
3412 cache = btrfs_lookup_block_group(fs_info, chunk_offset);
3413 ASSERT(cache);
3414 chunk_type = cache->flags;
3415 btrfs_put_block_group(cache);
3617 struct btrfs_block_group *cache;
3623 cache = btrfs_lookup_block_group(fs_info, chunk_offset);
3624 chunk_used = cache->used;
3629 user_thresh_min = mult_perc(cache->length, bargs->usage_min);
3634 user_thresh_max = cache->length;
3636 user_thresh_max = mult_perc(cache->length, bargs->usage_max);
3641 btrfs_put_block_group(cache);
3648 struct btrfs_block_group *cache;
3652 cache = btrfs_lookup_block_group(fs_info, chunk_offset);
3653 chunk_used = cache->used;
3658 user_thresh = cache->length;
3660 user_thresh = mult_perc(cache->length, bargs->usage);
3665 btrfs_put_block_group(cache);
6067 struct btrfs_block_group *cache;
6074 cache = btrfs_lookup_block_group(fs_info, logical);
6076 ret = test_bit(BLOCK_GROUP_FLAG_TO_COPY, &cache->runtime_flags);
6078 btrfs_put_block_group(cache);
6681 * Due to page cache limit, metadata beyond BTRFS_32BIT_MAX_FILE_SIZE
7961 struct btrfs_block_group *cache = data;
7962 struct btrfs_fs_info *fs_info = cache->fs_info;
7966 target = cache->start;
7967 btrfs_put_block_group(cache);
7981 cache = btrfs_lookup_block_group(fs_info, target);
7982 if (!cache)
7985 if (!test_bit(BLOCK_GROUP_FLAG_RELOCATING_REPAIR, &cache->runtime_flags))
7998 if (cache)
7999 btrfs_put_block_group(cache);
8009 struct btrfs_block_group *cache;
8018 cache = btrfs_lookup_block_group(fs_info, logical);
8019 if (!cache)
8022 if (test_and_set_bit(BLOCK_GROUP_FLAG_RELOCATING_REPAIR, &cache->runtime_flags)) {
8023 btrfs_put_block_group(cache);
8027 kthread_run(relocating_repair_kthread, cache,