Lines Matching refs:caching_ctl
2617 struct btrfs_caching_control *caching_ctl;
2624 caching_ctl = btrfs_get_caching_control(block_group);
2626 if (!caching_ctl) {
2631 mutex_lock(&caching_ctl->mutex);
2633 if (start >= caching_ctl->progress) {
2636 } else if (start + num_bytes <= caching_ctl->progress) {
2640 num_bytes = caching_ctl->progress - start;
2647 caching_ctl->progress;
2648 start = caching_ctl->progress;
2653 mutex_unlock(&caching_ctl->mutex);
2654 btrfs_put_caching_control(caching_ctl);