Lines Matching refs:b_dev_info
91 static struct balloon_dev_info b_dev_info; variable
169 balloon_page_enqueue(&b_dev_info, page); in cmm_alloc_pages()
192 page = balloon_page_dequeue(&b_dev_info); in cmm_free_pages()
518 static int cmm_migratepage(struct balloon_dev_info *b_dev_info, in cmm_migratepage() argument
551 spin_lock_irqsave(&b_dev_info->pages_lock, flags); in cmm_migratepage()
552 balloon_page_insert(b_dev_info, newpage); in cmm_migratepage()
554 b_dev_info->isolated_pages--; in cmm_migratepage()
555 spin_unlock_irqrestore(&b_dev_info->pages_lock, flags); in cmm_migratepage()
573 balloon_devinfo_init(&b_dev_info); in cmm_balloon_compaction_init()
574 b_dev_info.migratepage = cmm_migratepage; in cmm_balloon_compaction_init()
583 b_dev_info.inode = alloc_anon_inode(balloon_mnt->mnt_sb); in cmm_balloon_compaction_init()
584 if (IS_ERR(b_dev_info.inode)) { in cmm_balloon_compaction_init()
585 rc = PTR_ERR(b_dev_info.inode); in cmm_balloon_compaction_init()
586 b_dev_info.inode = NULL; in cmm_balloon_compaction_init()
592 b_dev_info.inode->i_mapping->a_ops = &balloon_aops; in cmm_balloon_compaction_init()
597 if (b_dev_info.inode) in cmm_balloon_compaction_deinit()
598 iput(b_dev_info.inode); in cmm_balloon_compaction_deinit()
599 b_dev_info.inode = NULL; in cmm_balloon_compaction_deinit()