Lines Matching refs:spool
1006 struct hugepage_subpool *spool = sbinfo->spool; in hugetlbfs_show_options() local
1029 if (spool) { in hugetlbfs_show_options()
1030 if (spool->max_hpages != -1) in hugetlbfs_show_options()
1032 (unsigned long long)spool->max_hpages << hpage_shift); in hugetlbfs_show_options()
1033 if (spool->min_hpages != -1) in hugetlbfs_show_options()
1035 (unsigned long long)spool->min_hpages << hpage_shift); in hugetlbfs_show_options()
1051 if (sbinfo->spool) { in hugetlbfs_statfs()
1054 spin_lock(&sbinfo->spool->lock); in hugetlbfs_statfs()
1055 buf->f_blocks = sbinfo->spool->max_hpages; in hugetlbfs_statfs()
1056 free_pages = sbinfo->spool->max_hpages in hugetlbfs_statfs()
1057 - sbinfo->spool->used_hpages; in hugetlbfs_statfs()
1059 spin_unlock(&sbinfo->spool->lock); in hugetlbfs_statfs()
1076 if (sbi->spool) in hugetlbfs_put_super()
1077 hugepage_put_subpool(sbi->spool); in hugetlbfs_put_super()
1344 sbinfo->spool = NULL; in hugetlbfs_fill_super()
1355 sbinfo->spool = hugepage_new_subpool(ctx->hstate, in hugetlbfs_fill_super()
1358 if (!sbinfo->spool) in hugetlbfs_fill_super()
1378 kfree(sbinfo->spool); in hugetlbfs_fill_super()