Home
last modified time | relevance | path

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

/Linux-v5.15/fs/hugetlbfs/
Dinode.c55 long max_hpages; member
1025 if (spool->max_hpages != -1) in hugetlbfs_show_options()
1027 (unsigned long long)spool->max_hpages << hpage_shift); in hugetlbfs_show_options()
1050 buf->f_blocks = sbinfo->spool->max_hpages; in hugetlbfs_statfs()
1051 free_pages = sbinfo->spool->max_hpages in hugetlbfs_statfs()
1306 ctx->max_hpages = hugetlbfs_size_to_hpages(ctx->hstate, in hugetlbfs_validate()
1317 ctx->min_hpages > ctx->max_hpages) { in hugetlbfs_validate()
1349 if (ctx->max_hpages != -1 || ctx->min_hpages != -1) { in hugetlbfs_fill_super()
1351 ctx->max_hpages, in hugetlbfs_fill_super()
1405 ctx->max_hpages = -1; /* No limit on size by default */ in hugetlbfs_init_fs_context()
/Linux-v5.15/include/linux/
Dhugetlb.h52 long max_hpages; /* Maximum huge pages or -1 if no maximum. */ member
122 struct hugepage_subpool *hugepage_new_subpool(struct hstate *h, long max_hpages,
/Linux-v5.15/mm/
Dhugetlb.c90 if (spool->max_hpages != -1) in subpool_is_free()
114 struct hugepage_subpool *hugepage_new_subpool(struct hstate *h, long max_hpages, in hugepage_new_subpool() argument
125 spool->max_hpages = max_hpages; in hugepage_new_subpool()
166 if (spool->max_hpages != -1) { /* maximum size accounting */ in hugepage_subpool_get_pages()
167 if ((spool->used_hpages + delta) <= spool->max_hpages) in hugepage_subpool_get_pages()
212 if (spool->max_hpages != -1) /* maximum size accounting */ in hugepage_subpool_put_pages()