Lines Matching refs:spool
1013 struct hugepage_subpool *spool = sbinfo->spool; in hugetlbfs_show_options() local
1036 if (spool) { in hugetlbfs_show_options()
1037 if (spool->max_hpages != -1) in hugetlbfs_show_options()
1039 (unsigned long long)spool->max_hpages << hpage_shift); in hugetlbfs_show_options()
1040 if (spool->min_hpages != -1) in hugetlbfs_show_options()
1042 (unsigned long long)spool->min_hpages << hpage_shift); in hugetlbfs_show_options()
1058 if (sbinfo->spool) { in hugetlbfs_statfs()
1061 spin_lock(&sbinfo->spool->lock); in hugetlbfs_statfs()
1062 buf->f_blocks = sbinfo->spool->max_hpages; in hugetlbfs_statfs()
1063 free_pages = sbinfo->spool->max_hpages in hugetlbfs_statfs()
1064 - sbinfo->spool->used_hpages; in hugetlbfs_statfs()
1066 spin_unlock(&sbinfo->spool->lock); in hugetlbfs_statfs()
1083 if (sbi->spool) in hugetlbfs_put_super()
1084 hugepage_put_subpool(sbi->spool); in hugetlbfs_put_super()
1351 sbinfo->spool = NULL; in hugetlbfs_fill_super()
1362 sbinfo->spool = hugepage_new_subpool(ctx->hstate, in hugetlbfs_fill_super()
1365 if (!sbinfo->spool) in hugetlbfs_fill_super()
1385 kfree(sbinfo->spool); in hugetlbfs_fill_super()