Lines Matching refs:caching_ctl
2652 struct btrfs_caching_control *caching_ctl; in __exclude_logged_extent() local
2659 caching_ctl = btrfs_get_caching_control(block_group); in __exclude_logged_extent()
2661 if (!caching_ctl) { in __exclude_logged_extent()
2666 mutex_lock(&caching_ctl->mutex); in __exclude_logged_extent()
2668 if (start >= caching_ctl->progress) { in __exclude_logged_extent()
2671 } else if (start + num_bytes <= caching_ctl->progress) { in __exclude_logged_extent()
2675 num_bytes = caching_ctl->progress - start; in __exclude_logged_extent()
2682 caching_ctl->progress; in __exclude_logged_extent()
2683 start = caching_ctl->progress; in __exclude_logged_extent()
2688 mutex_unlock(&caching_ctl->mutex); in __exclude_logged_extent()
2689 btrfs_put_caching_control(caching_ctl); in __exclude_logged_extent()
2736 struct btrfs_caching_control *caching_ctl; in btrfs_prepare_extent_commit() local
2741 list_for_each_entry_safe(caching_ctl, next, in btrfs_prepare_extent_commit()
2743 cache = caching_ctl->block_group; in btrfs_prepare_extent_commit()
2746 list_del_init(&caching_ctl->list); in btrfs_prepare_extent_commit()
2747 btrfs_put_caching_control(caching_ctl); in btrfs_prepare_extent_commit()
2749 cache->last_byte_to_unpin = caching_ctl->progress; in btrfs_prepare_extent_commit()