Lines Matching defs:last_ptr

3499 	struct btrfs_free_cluster *last_ptr;
3558 struct btrfs_free_cluster *last_ptr = ffe_ctl->last_ptr;
3563 cluster_bg = btrfs_lock_cluster(bg, last_ptr, ffe_ctl->delalloc);
3570 offset = btrfs_alloc_from_cluster(cluster_bg, last_ptr,
3575 spin_unlock(&last_ptr->refill_lock);
3582 WARN_ON(last_ptr->block_group != cluster_bg);
3597 spin_unlock(&last_ptr->refill_lock);
3603 btrfs_return_cluster_to_free_space(NULL, last_ptr);
3610 spin_unlock(&last_ptr->refill_lock);
3617 ret = btrfs_find_space_cluster(bg, last_ptr, ffe_ctl->search_start,
3621 offset = btrfs_alloc_from_cluster(bg, last_ptr,
3626 spin_unlock(&last_ptr->refill_lock);
3635 spin_unlock(&last_ptr->refill_lock);
3647 btrfs_return_cluster_to_free_space(NULL, last_ptr);
3648 spin_unlock(&last_ptr->refill_lock);
3660 struct btrfs_free_cluster *last_ptr = ffe_ctl->last_ptr;
3668 if (unlikely(last_ptr)) {
3669 spin_lock(&last_ptr->lock);
3670 last_ptr->fragmented = 1;
3671 spin_unlock(&last_ptr->lock);
3723 if (ffe_ctl->last_ptr && ffe_ctl->use_cluster) {
3766 struct btrfs_free_cluster *last_ptr = ffe_ctl->last_ptr;
3768 if (!ffe_ctl->use_cluster && last_ptr) {
3769 spin_lock(&last_ptr->lock);
3770 last_ptr->window_start = ins->objectid;
3771 spin_unlock(&last_ptr->lock);
3933 ffe_ctl->last_ptr = fetch_cluster_info(fs_info, space_info,
3935 if (ffe_ctl->last_ptr) {
3936 struct btrfs_free_cluster *last_ptr = ffe_ctl->last_ptr;
3938 spin_lock(&last_ptr->lock);
3939 if (last_ptr->block_group)
3940 ffe_ctl->hint_byte = last_ptr->window_start;
3941 if (last_ptr->fragmented) {
3947 ffe_ctl->hint_byte = last_ptr->window_start;
3950 spin_unlock(&last_ptr->lock);
4025 ffe_ctl.last_ptr = NULL;