Lines Matching refs:spool
1001 struct hugepage_subpool *spool = sbinfo->spool; in hugetlbfs_show_options() local
1024 if (spool) { in hugetlbfs_show_options()
1025 if (spool->max_hpages != -1) in hugetlbfs_show_options()
1027 (unsigned long long)spool->max_hpages << hpage_shift); in hugetlbfs_show_options()
1028 if (spool->min_hpages != -1) in hugetlbfs_show_options()
1030 (unsigned long long)spool->min_hpages << hpage_shift); in hugetlbfs_show_options()
1046 if (sbinfo->spool) { in hugetlbfs_statfs()
1049 spin_lock(&sbinfo->spool->lock); in hugetlbfs_statfs()
1050 buf->f_blocks = sbinfo->spool->max_hpages; in hugetlbfs_statfs()
1051 free_pages = sbinfo->spool->max_hpages in hugetlbfs_statfs()
1052 - sbinfo->spool->used_hpages; in hugetlbfs_statfs()
1054 spin_unlock(&sbinfo->spool->lock); in hugetlbfs_statfs()
1071 if (sbi->spool) in hugetlbfs_put_super()
1072 hugepage_put_subpool(sbi->spool); in hugetlbfs_put_super()
1339 sbinfo->spool = NULL; in hugetlbfs_fill_super()
1350 sbinfo->spool = hugepage_new_subpool(ctx->hstate, in hugetlbfs_fill_super()
1353 if (!sbinfo->spool) in hugetlbfs_fill_super()
1373 kfree(sbinfo->spool); in hugetlbfs_fill_super()