Home
last modified time | relevance | path

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

/Linux-v5.4/mm/
Dhugetlb.c76 static inline void unlock_or_release_subpool(struct hugepage_subpool *spool) in unlock_or_release_subpool() argument
78 bool free = (spool->count == 0) && (spool->used_hpages == 0); in unlock_or_release_subpool()
80 spin_unlock(&spool->lock); in unlock_or_release_subpool()
86 if (spool->min_hpages != -1) in unlock_or_release_subpool()
87 hugetlb_acct_memory(spool->hstate, in unlock_or_release_subpool()
88 -spool->min_hpages); in unlock_or_release_subpool()
89 kfree(spool); in unlock_or_release_subpool()
96 struct hugepage_subpool *spool; in hugepage_new_subpool() local
98 spool = kzalloc(sizeof(*spool), GFP_KERNEL); in hugepage_new_subpool()
99 if (!spool) in hugepage_new_subpool()
[all …]
/Linux-v5.4/fs/hugetlbfs/
Dinode.c927 struct hugepage_subpool *spool = sbinfo->spool; in hugetlbfs_show_options() local
950 if (spool) { in hugetlbfs_show_options()
951 if (spool->max_hpages != -1) in hugetlbfs_show_options()
953 (unsigned long long)spool->max_hpages << hpage_shift); in hugetlbfs_show_options()
954 if (spool->min_hpages != -1) in hugetlbfs_show_options()
956 (unsigned long long)spool->min_hpages << hpage_shift); in hugetlbfs_show_options()
972 if (sbinfo->spool) { in hugetlbfs_statfs()
975 spin_lock(&sbinfo->spool->lock); in hugetlbfs_statfs()
976 buf->f_blocks = sbinfo->spool->max_hpages; in hugetlbfs_statfs()
977 free_pages = sbinfo->spool->max_hpages in hugetlbfs_statfs()
[all …]
/Linux-v5.4/include/linux/
Dhugetlb.h60 void hugepage_put_subpool(struct hugepage_subpool *spool);
265 struct hugepage_subpool *spool; member