Lines Matching defs:last_ptr

3655 	struct btrfs_free_cluster *last_ptr = ffe_ctl->last_ptr;
3660 cluster_bg = btrfs_lock_cluster(bg, last_ptr, ffe_ctl->delalloc);
3667 offset = btrfs_alloc_from_cluster(cluster_bg, last_ptr,
3672 spin_unlock(&last_ptr->refill_lock);
3678 WARN_ON(last_ptr->block_group != cluster_bg);
3693 spin_unlock(&last_ptr->refill_lock);
3699 btrfs_return_cluster_to_free_space(NULL, last_ptr);
3706 spin_unlock(&last_ptr->refill_lock);
3713 ret = btrfs_find_space_cluster(bg, last_ptr, ffe_ctl->search_start,
3717 offset = btrfs_alloc_from_cluster(bg, last_ptr,
3722 spin_unlock(&last_ptr->refill_lock);
3733 btrfs_return_cluster_to_free_space(NULL, last_ptr);
3734 spin_unlock(&last_ptr->refill_lock);
3745 struct btrfs_free_cluster *last_ptr = ffe_ctl->last_ptr;
3753 if (unlikely(last_ptr)) {
3754 spin_lock(&last_ptr->lock);
3755 last_ptr->fragmented = 1;
3756 spin_unlock(&last_ptr->lock);
3791 if (ffe_ctl->last_ptr && ffe_ctl->use_cluster) {
4031 struct btrfs_free_cluster *last_ptr = ffe_ctl->last_ptr;
4033 if (!ffe_ctl->use_cluster && last_ptr) {
4034 spin_lock(&last_ptr->lock);
4035 last_ptr->window_start = ins->objectid;
4036 spin_unlock(&last_ptr->lock);
4263 ffe_ctl->last_ptr = fetch_cluster_info(fs_info, space_info,
4265 if (ffe_ctl->last_ptr) {
4266 struct btrfs_free_cluster *last_ptr = ffe_ctl->last_ptr;
4268 spin_lock(&last_ptr->lock);
4269 if (last_ptr->block_group)
4270 ffe_ctl->hint_byte = last_ptr->window_start;
4271 if (last_ptr->fragmented) {
4277 ffe_ctl->hint_byte = last_ptr->window_start;
4280 spin_unlock(&last_ptr->lock);
4379 ffe_ctl->last_ptr = NULL;