Lines Matching refs:spool
889 struct hugepage_subpool *spool = sbinfo->spool; in hugetlbfs_show_options() local
912 if (spool) { in hugetlbfs_show_options()
913 if (spool->max_hpages != -1) in hugetlbfs_show_options()
915 (unsigned long long)spool->max_hpages << hpage_shift); in hugetlbfs_show_options()
916 if (spool->min_hpages != -1) in hugetlbfs_show_options()
918 (unsigned long long)spool->min_hpages << hpage_shift); in hugetlbfs_show_options()
934 if (sbinfo->spool) { in hugetlbfs_statfs()
937 spin_lock(&sbinfo->spool->lock); in hugetlbfs_statfs()
938 buf->f_blocks = sbinfo->spool->max_hpages; in hugetlbfs_statfs()
939 free_pages = sbinfo->spool->max_hpages in hugetlbfs_statfs()
940 - sbinfo->spool->used_hpages; in hugetlbfs_statfs()
942 spin_unlock(&sbinfo->spool->lock); in hugetlbfs_statfs()
959 if (sbi->spool) in hugetlbfs_put_super()
960 hugepage_put_subpool(sbi->spool); in hugetlbfs_put_super()
1248 sbinfo->spool = NULL; in hugetlbfs_fill_super()
1259 sbinfo->spool = hugepage_new_subpool(config.hstate, in hugetlbfs_fill_super()
1262 if (!sbinfo->spool) in hugetlbfs_fill_super()
1276 kfree(sbinfo->spool); in hugetlbfs_fill_super()