Home
last modified time | relevance | path

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

/Linux-v4.19/fs/hugetlbfs/
Dinode.c50 long max_hpages; member
913 if (spool->max_hpages != -1) in hugetlbfs_show_options()
915 (unsigned long long)spool->max_hpages << hpage_shift); in hugetlbfs_show_options()
938 buf->f_blocks = sbinfo->spool->max_hpages; in hugetlbfs_statfs()
939 free_pages = sbinfo->spool->max_hpages in hugetlbfs_statfs()
1201 pconfig->max_hpages = hugetlbfs_size_to_hpages(pconfig->hstate, in hugetlbfs_parse_options()
1210 pconfig->min_hpages > pconfig->max_hpages) { in hugetlbfs_parse_options()
1229 config.max_hpages = -1; /* No limit on size by default */ in hugetlbfs_fill_super()
1258 if (config.max_hpages != -1 || config.min_hpages != -1) { in hugetlbfs_fill_super()
1260 config.max_hpages, in hugetlbfs_fill_super()
/Linux-v4.19/include/linux/
Dhugetlb.h51 long max_hpages; /* Maximum huge pages or -1 if no maximum. */ member
76 struct hugepage_subpool *hugepage_new_subpool(struct hstate *h, long max_hpages,
/Linux-v4.19/mm/
Dhugetlb.c91 struct hugepage_subpool *hugepage_new_subpool(struct hstate *h, long max_hpages, in hugepage_new_subpool() argument
102 spool->max_hpages = max_hpages; in hugepage_new_subpool()
141 if (spool->max_hpages != -1) { /* maximum size accounting */ in hugepage_subpool_get_pages()
142 if ((spool->used_hpages + delta) <= spool->max_hpages) in hugepage_subpool_get_pages()
186 if (spool->max_hpages != -1) /* maximum size accounting */ in hugepage_subpool_put_pages()