Lines Matching refs:vb_dev_info
71 struct balloon_dev_info vb_dev_info; member
171 balloon_page_enqueue(&vb->vb_dev_info, page); in fill_balloon()
208 struct balloon_dev_info *vb_dev_info = &vb->vb_dev_info; in leak_balloon() local
219 page = balloon_page_dequeue(vb_dev_info); in leak_balloon()
453 static int virtballoon_migratepage(struct balloon_dev_info *vb_dev_info, in virtballoon_migratepage() argument
456 struct virtio_balloon *vb = container_of(vb_dev_info, in virtballoon_migratepage()
457 struct virtio_balloon, vb_dev_info); in virtballoon_migratepage()
485 spin_lock_irqsave(&vb_dev_info->pages_lock, flags); in virtballoon_migratepage()
486 balloon_page_insert(vb_dev_info, newpage); in virtballoon_migratepage()
487 vb_dev_info->isolated_pages--; in virtballoon_migratepage()
489 spin_unlock_irqrestore(&vb_dev_info->pages_lock, flags); in virtballoon_migratepage()
495 spin_lock_irqsave(&vb_dev_info->pages_lock, flags); in virtballoon_migratepage()
497 spin_unlock_irqrestore(&vb_dev_info->pages_lock, flags); in virtballoon_migratepage()
598 balloon_devinfo_init(&vb->vb_dev_info); in virtballoon_probe()
611 vb->vb_dev_info.migratepage = virtballoon_migratepage; in virtballoon_probe()
612 vb->vb_dev_info.inode = alloc_anon_inode(balloon_mnt->mnt_sb); in virtballoon_probe()
613 if (IS_ERR(vb->vb_dev_info.inode)) { in virtballoon_probe()
614 err = PTR_ERR(vb->vb_dev_info.inode); in virtballoon_probe()
618 vb->vb_dev_info.inode->i_mapping->a_ops = &balloon_aops; in virtballoon_probe()
670 if (vb->vb_dev_info.inode) in virtballoon_remove()
671 iput(vb->vb_dev_info.inode); in virtballoon_remove()