Home
last modified time | relevance | path

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

/Linux-v5.10/mm/
Dhugetlb.c85 static inline void unlock_or_release_subpool(struct hugepage_subpool *spool) in unlock_or_release_subpool() argument
87 bool free = (spool->count == 0) && (spool->used_hpages == 0); in unlock_or_release_subpool()
89 spin_unlock(&spool->lock); in unlock_or_release_subpool()
95 if (spool->min_hpages != -1) in unlock_or_release_subpool()
96 hugetlb_acct_memory(spool->hstate, in unlock_or_release_subpool()
97 -spool->min_hpages); in unlock_or_release_subpool()
98 kfree(spool); in unlock_or_release_subpool()
105 struct hugepage_subpool *spool; in hugepage_new_subpool() local
107 spool = kzalloc(sizeof(*spool), GFP_KERNEL); in hugepage_new_subpool()
108 if (!spool) in hugepage_new_subpool()
[all …]
/Linux-v5.10/fs/hugetlbfs/
Dinode.c1006 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()
[all …]
/Linux-v5.10/include/linux/
Dhugetlb.h106 void hugepage_put_subpool(struct hugepage_subpool *spool);
412 struct hugepage_subpool *spool; member