Home
last modified time | relevance | path

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

/linux-6.3-rc2/fs/hugetlbfs/
A Dinode.c53 long max_hpages; member
1153 if (spool->max_hpages != -1) in hugetlbfs_show_options()
1155 (unsigned long long)spool->max_hpages << hpage_shift); in hugetlbfs_show_options()
1178 buf->f_blocks = sbinfo->spool->max_hpages; in hugetlbfs_statfs()
1179 free_pages = sbinfo->spool->max_hpages in hugetlbfs_statfs()
1434 ctx->max_hpages = hugetlbfs_size_to_hpages(ctx->hstate, in hugetlbfs_validate()
1445 ctx->min_hpages > ctx->max_hpages) { in hugetlbfs_validate()
1477 if (ctx->max_hpages != -1 || ctx->min_hpages != -1) { in hugetlbfs_fill_super()
1479 ctx->max_hpages, in hugetlbfs_fill_super()
1533 ctx->max_hpages = -1; /* No limit on size by default */ in hugetlbfs_init_fs_context()
/linux-6.3-rc2/include/linux/
A Dhugetlb.h45 long max_hpages; /* Maximum huge pages or -1 if no maximum. */ member
121 struct hugepage_subpool *hugepage_new_subpool(struct hstate *h, long max_hpages,
/linux-6.3-rc2/mm/
A Dhugetlb.c104 if (spool->max_hpages != -1) in subpool_is_free()
128 struct hugepage_subpool *hugepage_new_subpool(struct hstate *h, long max_hpages, in hugepage_new_subpool() argument
139 spool->max_hpages = max_hpages; in hugepage_new_subpool()
180 if (spool->max_hpages != -1) { /* maximum size accounting */ in hugepage_subpool_get_pages()
181 if ((spool->used_hpages + delta) <= spool->max_hpages) in hugepage_subpool_get_pages()
226 if (spool->max_hpages != -1) /* maximum size accounting */ in hugepage_subpool_put_pages()

Completed in 20 milliseconds