Lines Matching refs:caching_ctl
2608 struct btrfs_caching_control *caching_ctl; in __exclude_logged_extent() local
2615 caching_ctl = btrfs_get_caching_control(block_group); in __exclude_logged_extent()
2617 if (!caching_ctl) { in __exclude_logged_extent()
2622 mutex_lock(&caching_ctl->mutex); in __exclude_logged_extent()
2624 if (start >= caching_ctl->progress) { in __exclude_logged_extent()
2627 } else if (start + num_bytes <= caching_ctl->progress) { in __exclude_logged_extent()
2631 num_bytes = caching_ctl->progress - start; in __exclude_logged_extent()
2638 caching_ctl->progress; in __exclude_logged_extent()
2639 start = caching_ctl->progress; in __exclude_logged_extent()
2644 mutex_unlock(&caching_ctl->mutex); in __exclude_logged_extent()
2645 btrfs_put_caching_control(caching_ctl); in __exclude_logged_extent()