Home
last modified time | relevance | path

Searched refs:spool (Results 1 – 3 of 3) sorted by relevance

/linux-6.15/mm/
H A Dhugetlb.c143 return spool->rsv_hpages == spool->min_hpages; in subpool_is_free()
169 spool = kzalloc(sizeof(*spool), GFP_KERNEL); in hugepage_new_subpool()
170 if (!spool) in hugepage_new_subpool()
211 if (!spool) in hugepage_subpool_get_pages()
226 if (spool->min_hpages != -1 && spool->rsv_hpages) { in hugepage_subpool_get_pages()
257 if (!spool) in hugepage_subpool_put_pages()
266 if (spool->min_hpages != -1 && spool->used_hpages < spool->min_hpages) { in hugepage_subpool_put_pages()
267 if (spool->rsv_hpages + delta <= spool->min_hpages) in hugepage_subpool_put_pages()
270 ret = spool->rsv_hpages + delta - spool->min_hpages; in hugepage_subpool_put_pages()
273 if (spool->rsv_hpages > spool->min_hpages) in hugepage_subpool_put_pages()
[all …]
/linux-6.15/fs/hugetlbfs/
H A Dinode.c1087 struct hugepage_subpool *spool = sbinfo->spool; in hugetlbfs_show_options() local
1110 if (spool) { in hugetlbfs_show_options()
1111 if (spool->max_hpages != -1) in hugetlbfs_show_options()
1114 if (spool->min_hpages != -1) in hugetlbfs_show_options()
1134 if (sbinfo->spool) { in hugetlbfs_statfs()
1140 - sbinfo->spool->used_hpages; in hugetlbfs_statfs()
1159 if (sbi->spool) in hugetlbfs_put_super()
1160 hugepage_put_subpool(sbi->spool); in hugetlbfs_put_super()
1414 sbinfo->spool = NULL; in hugetlbfs_fill_super()
1428 if (!sbinfo->spool) in hugetlbfs_fill_super()
[all …]
/linux-6.15/include/linux/
H A Dhugetlb.h120 void hugepage_put_subpool(struct hugepage_subpool *spool);
507 struct hugepage_subpool *spool; member