• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/btrfs/

Lines Matching refs:caching_ctl

245 	ctl = cache->caching_ctl;
303 struct btrfs_caching_control *caching_ctl = block_group->caching_ctl;
338 mutex_lock(&caching_ctl->mutex);
363 caching_ctl->progress = last;
366 mutex_unlock(&caching_ctl->mutex);
391 wake_up(&caching_ctl->wait);
401 caching_ctl->progress = (u64)-1;
404 block_group->caching_ctl = NULL;
414 mutex_unlock(&caching_ctl->mutex);
415 wake_up(&caching_ctl->wait);
417 put_caching_control(caching_ctl);
427 struct btrfs_caching_control *caching_ctl;
435 caching_ctl = kzalloc(sizeof(*caching_ctl), GFP_KERNEL);
436 BUG_ON(!caching_ctl);
438 INIT_LIST_HEAD(&caching_ctl->list);
439 mutex_init(&caching_ctl->mutex);
440 init_waitqueue_head(&caching_ctl->wait);
441 caching_ctl->block_group = cache;
442 caching_ctl->progress = cache->key.objectid;
444 atomic_set(&caching_ctl->count, 2);
449 kfree(caching_ctl);
452 cache->caching_ctl = caching_ctl;
457 list_add_tail(&caching_ctl->list, &fs_info->caching_block_groups);
3789 struct btrfs_caching_control *caching_ctl;
3794 list_for_each_entry_safe(caching_ctl, next,
3796 cache = caching_ctl->block_group;
3799 list_del_init(&caching_ctl->list);
3800 put_caching_control(caching_ctl);
3802 cache->last_byte_to_unpin = caching_ctl->progress;
4320 struct btrfs_caching_control *caching_ctl;
4323 caching_ctl = get_caching_control(cache);
4324 if (!caching_ctl)
4327 wait_event(caching_ctl->wait, block_group_cache_done(cache) ||
4330 put_caching_control(caching_ctl);
4337 struct btrfs_caching_control *caching_ctl;
4340 caching_ctl = get_caching_control(cache);
4341 if (!caching_ctl)
4344 wait_event(caching_ctl->wait, block_group_cache_done(cache));
4346 put_caching_control(caching_ctl);
5062 struct btrfs_caching_control *caching_ctl;
5068 caching_ctl = get_caching_control(block_group);
5070 if (!caching_ctl) {
5075 mutex_lock(&caching_ctl->mutex);
5077 if (start >= caching_ctl->progress) {
5080 } else if (start + num_bytes <= caching_ctl->progress) {
5085 num_bytes = caching_ctl->progress - start;
5090 start = caching_ctl->progress;
5092 caching_ctl->progress;
5097 mutex_unlock(&caching_ctl->mutex);
5098 put_caching_control(caching_ctl);
6180 struct btrfs_caching_control *caching_ctl;
6185 caching_ctl = list_entry(info->caching_block_groups.next,
6187 list_del(&caching_ctl->list);
6188 put_caching_control(caching_ctl);