Searched refs:spool (Results 1 – 5 of 5) sorted by relevance
91 struct spool_entry *spool = &tx_credit->spools[pool->sid]; in iwm_tx_credit_get() local95 spool_pages = spool->max_pages - spool->alloc_pages + in iwm_tx_credit_get()120 struct spool_entry *spool; in iwm_tx_credit_inc() local127 spool = &iwm->tx_credit.spools[pool->sid]; in iwm_tx_credit_inc()141 spool->alloc_pages -= spool_pages; in iwm_tx_credit_inc()149 pool->total_freed_pages, pool->sid, spool->alloc_pages); in iwm_tx_credit_inc()167 struct spool_entry *spool; in iwm_tx_credit_dec() local176 spool = &iwm->tx_credit.spools[pool->sid]; in iwm_tx_credit_dec()181 spool->alloc_pages += alloc_pages; in iwm_tx_credit_dec()183 spool->alloc_pages += spool_pages; in iwm_tx_credit_dec()[all …]
56 static inline void unlock_or_release_subpool(struct hugepage_subpool *spool) in unlock_or_release_subpool() argument58 bool free = (spool->count == 0) && (spool->used_hpages == 0); in unlock_or_release_subpool()60 spin_unlock(&spool->lock); in unlock_or_release_subpool()65 kfree(spool); in unlock_or_release_subpool()70 struct hugepage_subpool *spool; in hugepage_new_subpool() local72 spool = kmalloc(sizeof(*spool), GFP_KERNEL); in hugepage_new_subpool()73 if (!spool) in hugepage_new_subpool()76 spin_lock_init(&spool->lock); in hugepage_new_subpool()77 spool->count = 1; in hugepage_new_subpool()78 spool->max_hpages = nr_blocks; in hugepage_new_subpool()[all …]
630 if (sbinfo->spool) { in hugetlbfs_statfs()633 spin_lock(&sbinfo->spool->lock); in hugetlbfs_statfs()634 buf->f_blocks = sbinfo->spool->max_hpages; in hugetlbfs_statfs()635 free_pages = sbinfo->spool->max_hpages in hugetlbfs_statfs()636 - sbinfo->spool->used_hpages; in hugetlbfs_statfs()638 spin_unlock(&sbinfo->spool->lock); in hugetlbfs_statfs()655 if (sbi->spool) in hugetlbfs_put_super()656 hugepage_put_subpool(sbi->spool); in hugetlbfs_put_super()888 sbinfo->spool = NULL; in hugetlbfs_fill_super()890 sbinfo->spool = hugepage_new_subpool(config.nr_blocks); in hugetlbfs_fill_super()[all …]
24 void hugepage_put_subpool(struct hugepage_subpool *spool);151 struct hugepage_subpool *spool; member
1852 you can alternatively spool it to another readers guest.