Lines Matching defs:cache

30 #include "free-space-cache.h"
1964 btrfs_alloc_workqueue(fs_info, "cache", flags, max_active, 0);
2610 /* We can't trust the free space cache either */
3066 * (space cache related) can modify on-disk format like free space tree and
3141 * Subpage runtime limitation on v1 cache.
3143 * V1 space cache still has some hard codeed PAGE_SIZE usage, while
3144 * we're already defaulting to v2 cache, no need to bother v1 as it's
3149 "v1 space cache is not supported for page size %lu with sectorsize %u",
3313 * V1 space cache has some hardcoded PAGE_SIZE usage, and is
3316 * Force to use v2 cache for subpage case.
3813 * Directly use bios here instead of relying on the page cache
4639 struct btrfs_block_group *cache;
4641 cache = btrfs_lookup_block_group(fs_info, head->bytenr);
4642 BUG_ON(!cache);
4644 spin_lock(&cache->space_info->lock);
4645 spin_lock(&cache->lock);
4646 cache->pinned += head->num_bytes;
4648 cache->space_info, head->num_bytes);
4649 cache->reserved -= head->num_bytes;
4650 cache->space_info->bytes_reserved -= head->num_bytes;
4651 spin_unlock(&cache->lock);
4652 spin_unlock(&cache->space_info->lock);
4654 btrfs_put_block_group(cache);
4781 static void btrfs_cleanup_bg_io(struct btrfs_block_group *cache)
4785 inode = cache->io_ctl.inode;
4794 cache->io_ctl.inode = NULL;
4797 ASSERT(cache->io_ctl.pages == NULL);
4798 btrfs_put_block_group(cache);
4804 struct btrfs_block_group *cache;
4808 cache = list_first_entry(&cur_trans->dirty_bgs,
4812 if (!list_empty(&cache->io_list)) {
4814 list_del_init(&cache->io_list);
4815 btrfs_cleanup_bg_io(cache);
4819 list_del_init(&cache->dirty_list);
4820 spin_lock(&cache->lock);
4821 cache->disk_cache_state = BTRFS_DC_ERROR;
4822 spin_unlock(&cache->lock);
4825 btrfs_put_block_group(cache);
4836 cache = list_first_entry(&cur_trans->io_bgs,
4840 list_del_init(&cache->io_list);
4841 spin_lock(&cache->lock);
4842 cache->disk_cache_state = BTRFS_DC_ERROR;
4843 spin_unlock(&cache->lock);
4844 btrfs_cleanup_bg_io(cache);