Home
last modified time | relevance | path

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

/linux-4.4.14/fs/hugetlbfs/
Dinode.c52 long max_hpages; member
868 buf->f_blocks = sbinfo->spool->max_hpages; in hugetlbfs_statfs()
869 free_pages = sbinfo->spool->max_hpages in hugetlbfs_statfs()
1118 pconfig->max_hpages = hugetlbfs_size_to_hpages(pconfig->hstate, in hugetlbfs_parse_options()
1127 pconfig->min_hpages > pconfig->max_hpages) { in hugetlbfs_parse_options()
1148 config.max_hpages = -1; /* No limit on size by default */ in hugetlbfs_fill_super()
1173 if (config.max_hpages != -1 || config.min_hpages != -1) { in hugetlbfs_fill_super()
1175 config.max_hpages, in hugetlbfs_fill_super()
/linux-4.4.14/include/linux/
Dhugetlb.h25 long max_hpages; /* Maximum huge pages or -1 if no maximum. */ member
50 struct hugepage_subpool *hugepage_new_subpool(struct hstate *h, long max_hpages,
/linux-4.4.14/mm/
Dhugetlb.c89 struct hugepage_subpool *hugepage_new_subpool(struct hstate *h, long max_hpages, in hugepage_new_subpool() argument
100 spool->max_hpages = max_hpages; in hugepage_new_subpool()
139 if (spool->max_hpages != -1) { /* maximum size accounting */ in hugepage_subpool_get_pages()
140 if ((spool->used_hpages + delta) <= spool->max_hpages) in hugepage_subpool_get_pages()
183 if (spool->max_hpages != -1) /* maximum size accounting */ in hugepage_subpool_put_pages()