Lines Matching defs:last_ptr

3511 	struct btrfs_free_cluster *last_ptr = ffe_ctl->last_ptr;
3516 cluster_bg = btrfs_lock_cluster(bg, last_ptr, ffe_ctl->delalloc);
3523 offset = btrfs_alloc_from_cluster(cluster_bg, last_ptr,
3528 spin_unlock(&last_ptr->refill_lock);
3534 WARN_ON(last_ptr->block_group != cluster_bg);
3549 spin_unlock(&last_ptr->refill_lock);
3555 btrfs_return_cluster_to_free_space(NULL, last_ptr);
3562 spin_unlock(&last_ptr->refill_lock);
3569 ret = btrfs_find_space_cluster(bg, last_ptr, ffe_ctl->search_start,
3573 offset = btrfs_alloc_from_cluster(bg, last_ptr,
3578 spin_unlock(&last_ptr->refill_lock);
3589 btrfs_return_cluster_to_free_space(NULL, last_ptr);
3590 spin_unlock(&last_ptr->refill_lock);
3601 struct btrfs_free_cluster *last_ptr = ffe_ctl->last_ptr;
3609 if (unlikely(last_ptr)) {
3610 spin_lock(&last_ptr->lock);
3611 last_ptr->fragmented = 1;
3612 spin_unlock(&last_ptr->lock);
3647 if (ffe_ctl->last_ptr && ffe_ctl->use_cluster) {
3887 struct btrfs_free_cluster *last_ptr = ffe_ctl->last_ptr;
3889 if (!ffe_ctl->use_cluster && last_ptr) {
3890 spin_lock(&last_ptr->lock);
3891 last_ptr->window_start = ins->objectid;
3892 spin_unlock(&last_ptr->lock);
4119 ffe_ctl->last_ptr = fetch_cluster_info(fs_info, space_info,
4121 if (ffe_ctl->last_ptr) {
4122 struct btrfs_free_cluster *last_ptr = ffe_ctl->last_ptr;
4124 spin_lock(&last_ptr->lock);
4125 if (last_ptr->block_group)
4126 ffe_ctl->hint_byte = last_ptr->window_start;
4127 if (last_ptr->fragmented) {
4133 ffe_ctl->hint_byte = last_ptr->window_start;
4136 spin_unlock(&last_ptr->lock);
4235 ffe_ctl->last_ptr = NULL;