| /linux/arch/powerpc/mm/book3s64/ |
| H A D | radix_hugetlbpage.c | 13 struct hstate *hstate = hstate_file(vma->vm_file); in radix__flush_hugetlb_page() local 15 psize = hstate_get_psize(hstate); in radix__flush_hugetlb_page() 22 struct hstate *hstate = hstate_file(vma->vm_file); in radix__local_flush_hugetlb_page() local 24 psize = hstate_get_psize(hstate); in radix__local_flush_hugetlb_page() 32 struct hstate *hstate = hstate_file(vma->vm_file); in radix__flush_hugetlb_tlb_range() local 34 psize = hstate_get_psize(hstate); in radix__flush_hugetlb_tlb_range()
|
| /linux/mm/ |
| H A D | hugetlb_sysfs.c | 26 static struct hstate *kobj_to_node_hstate(struct kobject *kobj, int *nidp); 28 static struct hstate *kobj_to_hstate(struct kobject *kobj, int *nidp) in kobj_to_hstate() 45 struct hstate *h; in nr_hugepages_show_common() 62 struct hstate *h; in nr_hugepages_store_common() 113 struct hstate *h = kobj_to_hstate(kobj, NULL); in nr_overcommit_hugepages_show() 122 struct hstate *h = kobj_to_hstate(kobj, NULL); in nr_overcommit_hugepages_store() 142 struct hstate *h; in free_hugepages_show() 159 struct hstate *h = kobj_to_hstate(kobj, NULL); in resv_hugepages_show() 167 struct hstate *h; in surplus_hugepages_show() 187 struct hstate *h; in demote_store() [all …]
|
| H A D | hugetlb_internal.h | 19 static inline bool hstate_is_gigantic_no_runtime(struct hstate *h) in hstate_is_gigantic_no_runtime() 71 static inline int hstate_next_node_to_free(struct hstate *h, nodemask_t *nodes_allowed) in hstate_next_node_to_free() 95 extern void remove_hugetlb_folio(struct hstate *h, struct folio *folio, 97 extern void add_hugetlb_folio(struct hstate *h, struct folio *folio, 100 extern void prep_and_add_allocated_folios(struct hstate *h, 102 extern long demote_pool_huge_page(struct hstate *src, 106 struct hstate *h, int nid,
|
| H A D | hugetlb_cma.h | 11 void *hugetlb_cma_alloc_bootmem(struct hstate *h, int nid, bool node_exact); 15 bool hugetlb_early_cma(struct hstate *h); 27 static inline void *hugetlb_cma_alloc_bootmem(struct hstate *h, int nid, in hugetlb_cma_alloc_bootmem() 47 static inline bool hugetlb_early_cma(struct hstate *h) in hugetlb_early_cma()
|
| H A D | hugetlb.c | 59 struct hstate hstates[HUGE_MAX_HSTATE]; 83 static struct hstate * __initdata parsed_hstate; 118 static int hugetlb_acct_memory(struct hstate *h, long delta); 153 hugetlb_acct_memory(spool->hstate, in unlock_or_release_subpool() 159 struct hugepage_subpool *hugepage_new_subpool(struct hstate *h, long max_hpages, in hugepage_new_subpool() 171 spool->hstate = h; in hugepage_new_subpool() 493 struct hstate *h, in record_hugetlb_cgroup_uncharge_info() 575 long to, struct hstate *h, struct hugetlb_cgroup *cg, in hugetlb_resv_map_add() 602 struct hstate *h, long *regions_needed) in add_reservation_in_range() 734 long in_regions_needed, struct hstate *h, in region_add() [all …]
|
| H A D | page_vma_mapped.c | 203 struct hstate *hstate = hstate_vma(vma); in page_vma_mapped_walk() local 204 unsigned long size = huge_page_size(hstate); in page_vma_mapped_walk() 217 pvmw->ptl = huge_pte_lock(hstate, mm, pvmw->pte); in page_vma_mapped_walk() 218 if (!check_pte(pvmw, pages_per_huge_page(hstate))) in page_vma_mapped_walk()
|
| H A D | hugetlb_cgroup.c | 81 struct hstate *h; in hugetlb_cgroup_have_usage() 228 struct hstate *h; in hugetlb_cgroup_css_offline() 808 hugetlb_cgroup_cfttypes_init(struct hstate *h, struct cftype *cft, in hugetlb_cgroup_cfttypes_init() 835 static void __init __hugetlb_cgroup_file_dfl_init(struct hstate *h) in __hugetlb_cgroup_file_dfl_init() 843 static void __init __hugetlb_cgroup_file_legacy_init(struct hstate *h) in __hugetlb_cgroup_file_legacy_init() 851 static void __init __hugetlb_cgroup_file_init(struct hstate *h) in __hugetlb_cgroup_file_init() 879 struct hstate *h; in hugetlb_cgroup_file_init() 895 struct hstate *h = folio_hstate(old_folio); in hugetlb_cgroup_migrate()
|
| H A D | hugetlb_cma.c | 99 void * __init hugetlb_cma_alloc_bootmem(struct hstate *h, int nid, bool node_exact) in hugetlb_cma_alloc_bootmem() 405 bool __init hugetlb_early_cma(struct hstate *h) in hugetlb_early_cma()
|
| H A D | internal.h | 26 struct hstate; 30 struct hstate *hstate; member
|
| H A D | migrate.c | 428 struct hstate *h = hstate_vma(vma); in remove_migration_pte() 2212 struct hstate *h = folio_hstate(src); in alloc_migration_target()
|
| H A D | gup.c | 625 struct hstate *h = hstate_vma(vma); in no_page_table() 3445 struct hstate *h; in memfd_pin_folios()
|
| H A D | mremap.c | 1613 struct hstate *h __maybe_unused = hstate_vma(vrm->vma); in expand_vma()
|
| H A D | memory-failure.c | 778 struct hstate *h = hstate_vma(walk->vma); in hwpoison_hugetlb_range()
|
| H A D | mempolicy.c | 1452 struct hstate *h; in alloc_migration_target_by_mpol()
|
| /linux/Documentation/translations/zh_CN/mm/ |
| H A D | hugetlbfs_reserv.rst | 39 这是一个全局的(per-hstate)预留的巨页的计数。预留的巨页只对预留它们的任 240 有一个结构体hstate与每个巨页尺寸相关联。hstate跟踪所有指定大小的巨页。一个子池代表一 241 个hstate中的页面子集,它与一个已挂载的hugetlbfs文件系统相关 344 long vma_needs_reservation(struct hstate *h, 350 long vma_commit_reservation(struct hstate *h, 359 void vma_end_reservation(struct hstate *h, 366 long vma_add_reservation(struct hstate *h, 409 当git第一次被用来管理Linux代码时,每个节点的巨页列表就存在于hstate结构中。预留的概念是
|
| /linux/arch/powerpc/mm/nohash/ |
| H A D | e500_hugetlbpage.c | 189 struct hstate *hstate = hstate_file(vma->vm_file); in flush_hugetlb_page() local 190 unsigned long tsize = huge_page_shift(hstate) - 10; in flush_hugetlb_page()
|
| /linux/kernel/events/ |
| H A D | uprobes.c | 738 static inline struct uprobe *hprobe_consume(struct hprobe *hprobe, enum hprobe_state *hstate) in hprobe_consume() argument 740 *hstate = xchg(&hprobe->state, HPROBE_CONSUMED); in hprobe_consume() 741 switch (*hstate) { in hprobe_consume() 749 WARN(1, "hprobe invalid state %d", *hstate); in hprobe_consume() 759 static void hprobe_finalize(struct hprobe *hprobe, enum hprobe_state hstate) in hprobe_finalize() argument 761 switch (hstate) { in hprobe_finalize() 772 WARN(1, "hprobe invalid state %d", hstate); in hprobe_finalize() 795 enum hprobe_state hstate; in hprobe_expire() local 807 hstate = READ_ONCE(hprobe->state); in hprobe_expire() 808 switch (hstate) { in hprobe_expire() [all …]
|
| /linux/arch/riscv/include/asm/ |
| H A D | hugetlb.h | 15 bool arch_hugetlb_migration_supported(struct hstate *h);
|
| /linux/arch/powerpc/include/asm/ |
| H A D | kvm_book3s_asm.h | 140 struct kvmppc_host_state hstate; member
|
| /linux/arch/arm64/mm/ |
| H A D | hugetlbpage.c | 65 bool arch_hugetlb_migration_supported(struct hstate *h) in arch_hugetlb_migration_supported() 320 unsigned long hugetlb_mask_last_page(struct hstate *h) in hugetlb_mask_last_page()
|
| /linux/mm/damon/ |
| H A D | vaddr.c | 334 struct hstate *h = hstate_vma(walk->vma); in damon_mkold_hugetlb_entry() 448 struct hstate *h = hstate_vma(walk->vma); in damon_young_hugetlb_entry()
|
| /linux/fs/proc/ |
| H A D | task_mmu.c | 3042 struct hstate *h = hstate_vma(vma); in pagemap_scan_hugetlb_hole_wp()
|