Home
last modified time | relevance | path

Searched refs:min_hpages (Results 1 – 4 of 4) sorted by relevance

/Linux-v4.19/fs/hugetlbfs/
Dinode.c52 long min_hpages; member
916 if (spool->min_hpages != -1) in hugetlbfs_show_options()
918 (unsigned long long)spool->min_hpages << hpage_shift); in hugetlbfs_show_options()
1203 pconfig->min_hpages = hugetlbfs_size_to_hpages(pconfig->hstate, in hugetlbfs_parse_options()
1210 pconfig->min_hpages > pconfig->max_hpages) { in hugetlbfs_parse_options()
1235 config.min_hpages = -1; /* No default minimum size */ in hugetlbfs_fill_super()
1258 if (config.max_hpages != -1 || config.min_hpages != -1) { in hugetlbfs_fill_super()
1261 config.min_hpages); in hugetlbfs_fill_super()
/Linux-v4.19/mm/
Dhugetlb.c84 if (spool->min_hpages != -1) in unlock_or_release_subpool()
86 -spool->min_hpages); in unlock_or_release_subpool()
92 long min_hpages) in hugepage_new_subpool() argument
104 spool->min_hpages = min_hpages; in hugepage_new_subpool()
106 if (min_hpages != -1 && hugetlb_acct_memory(h, min_hpages)) { in hugepage_new_subpool()
110 spool->rsv_hpages = min_hpages; in hugepage_new_subpool()
151 if (spool->min_hpages != -1 && spool->rsv_hpages) { in hugepage_subpool_get_pages()
190 if (spool->min_hpages != -1 && spool->used_hpages < spool->min_hpages) { in hugepage_subpool_put_pages()
191 if (spool->rsv_hpages + delta <= spool->min_hpages) in hugepage_subpool_put_pages()
194 ret = spool->rsv_hpages + delta - spool->min_hpages; in hugepage_subpool_put_pages()
[all …]
/Linux-v4.19/include/linux/
Dhugetlb.h55 long min_hpages; /* Minimum huge pages or -1 if no minimum. */ member
77 long min_hpages);
/Linux-v4.19/Documentation/vm/
Dhugetlbfs_reserv.rst310 the min_hpages field of a struct hugepage_subpool. At mount time,
311 hugetlb_acct_memory(min_hpages) is called to reserve the specified number of