Home
last modified time | relevance | path

Searched refs:h (Results 1 – 5 of 5) sorted by relevance

/mm/
Dhugetlb.c85 static int hugetlb_acct_memory(struct hstate *h, long delta);
104 struct hugepage_subpool *hugepage_new_subpool(struct hstate *h, long max_hpages, in hugepage_new_subpool() argument
116 spool->hstate = h; in hugepage_new_subpool()
119 if (min_hpages != -1 && hugetlb_acct_memory(h, min_hpages)) { in hugepage_new_subpool()
590 struct hstate *h = hstate_inode(inode); in hugetlb_fix_reserve_counts() local
592 hugetlb_acct_memory(h, 1); in hugetlb_fix_reserve_counts()
631 static pgoff_t vma_hugecache_offset(struct hstate *h, in vma_hugecache_offset() argument
634 return ((address - vma->vm_start) >> huge_page_shift(h)) + in vma_hugecache_offset()
635 (vma->vm_pgoff >> huge_page_order(h)); in vma_hugecache_offset()
853 static void enqueue_huge_page(struct hstate *h, struct page *page) in enqueue_huge_page() argument
[all …]
Dhugetlb_cgroup.c148 struct hstate *h; in hugetlb_cgroup_css_offline() local
153 for_each_hstate(h) { in hugetlb_cgroup_css_offline()
155 list_for_each_entry(page, &h->hugepage_activelist, lru) in hugetlb_cgroup_css_offline()
340 struct hstate *h = &hstates[idx]; in __hugetlb_cgroup_file_init() local
343 mem_fmt(buf, 32, huge_page_size(h)); in __hugetlb_cgroup_file_init()
346 cft = &h->cgroup_files[0]; in __hugetlb_cgroup_file_init()
353 cft = &h->cgroup_files[1]; in __hugetlb_cgroup_file_init()
359 cft = &h->cgroup_files[2]; in __hugetlb_cgroup_file_init()
366 cft = &h->cgroup_files[3]; in __hugetlb_cgroup_file_init()
373 cft = &h->cgroup_files[4]; in __hugetlb_cgroup_file_init()
[all …]
Dpagewalk.c125 static unsigned long hugetlb_entry_end(struct hstate *h, unsigned long addr, in hugetlb_entry_end() argument
128 unsigned long boundary = (addr & huge_page_mask(h)) + huge_page_size(h); in hugetlb_entry_end()
136 struct hstate *h = hstate_vma(vma); in walk_hugetlb_range() local
138 unsigned long hmask = huge_page_mask(h); in walk_hugetlb_range()
143 next = hugetlb_entry_end(h, addr, end); in walk_hugetlb_range()
Dmigrate.c504 struct hstate *h = page_hstate(src); in copy_huge_page() local
505 nr_pages = pages_per_huge_page(h); in copy_huge_page()
Dslub.c1586 static void rcu_free_slab(struct rcu_head *h) in rcu_free_slab() argument
1591 page = virt_to_head_page(h); in rcu_free_slab()
1593 page = container_of((struct list_head *)h, struct page, lru); in rcu_free_slab()
3545 struct page *page, *h; in free_partial() local
3547 list_for_each_entry_safe(page, h, &n->partial, lru) { in free_partial()