Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/fs/hugetlbfs/
H A Dinode.c57 long min_hpages; member
1040 if (spool->min_hpages != -1) in hugetlbfs_show_options()
1042 (unsigned long long)spool->min_hpages << hpage_shift); in hugetlbfs_show_options()
1321 ctx->min_hpages = hugetlbfs_size_to_hpages(ctx->hstate, in hugetlbfs_validate()
1329 ctx->min_hpages > ctx->max_hpages) { in hugetlbfs_validate()
1361 if (ctx->max_hpages != -1 || ctx->min_hpages != -1) { in hugetlbfs_fill_super()
1364 ctx->min_hpages); in hugetlbfs_fill_super()
1423 ctx->min_hpages = -1; /* No default minimum size */ in hugetlbfs_init_fs_context()
/OK3568_Linux_fs/kernel/mm/
H A Dhugetlb.c109 if (spool->min_hpages != -1) in unlock_or_release_subpool()
111 -spool->min_hpages); in unlock_or_release_subpool()
117 long min_hpages) in hugepage_new_subpool() argument
129 spool->min_hpages = min_hpages; in hugepage_new_subpool()
131 if (min_hpages != -1 && hugetlb_acct_memory(h, min_hpages)) { in hugepage_new_subpool()
135 spool->rsv_hpages = min_hpages; in hugepage_new_subpool()
176 if (spool->min_hpages != -1 && spool->rsv_hpages) { in hugepage_subpool_get_pages()
215 if (spool->min_hpages != -1 && spool->used_hpages < spool->min_hpages) { in hugepage_subpool_put_pages()
216 if (spool->rsv_hpages + delta <= spool->min_hpages) in hugepage_subpool_put_pages()
219 ret = spool->rsv_hpages + delta - spool->min_hpages; in hugepage_subpool_put_pages()
[all …]
/OK3568_Linux_fs/kernel/include/linux/
H A Dhugetlb.h39 long min_hpages; /* Minimum huge pages or -1 if no minimum. */ member
106 long min_hpages);
/OK3568_Linux_fs/kernel/Documentation/vm/
H A Dhugetlbfs_reserv.rst311 the min_hpages field of a struct hugepage_subpool. At mount time,
312 hugetlb_acct_memory(min_hpages) is called to reserve the specified number of