Home
last modified time | relevance | path

Searched refs:hpage (Results 1 – 13 of 13) sorted by relevance

/Linux-v6.6/fs/verity/
Dverify.c19 static bool is_hash_block_verified(struct fsverity_info *vi, struct page *hpage, in is_hash_block_verified() argument
36 return PageChecked(hpage); in is_hash_block_verified()
53 if (PageChecked(hpage)) { in is_hash_block_verified()
62 if (PageChecked(hpage)) { in is_hash_block_verified()
74 SetPageChecked(hpage); in is_hash_block_verified()
149 struct page *hpage; in verify_data_block() local
172 hpage = inode->i_sb->s_vop->read_merkle_tree_page(inode, in verify_data_block()
175 if (IS_ERR(hpage)) { in verify_data_block()
178 PTR_ERR(hpage), hpage_idx); in verify_data_block()
181 haddr = kmap_local_page(hpage) + hblock_offset_in_page; in verify_data_block()
[all …]
/Linux-v6.6/mm/
Dkhugepaged.c890 static bool hpage_collapse_alloc_page(struct page **hpage, gfp_t gfp, int node, in hpage_collapse_alloc_page() argument
893 *hpage = __alloc_pages(gfp, HPAGE_PMD_ORDER, node, nmask); in hpage_collapse_alloc_page()
894 if (unlikely(!*hpage)) { in hpage_collapse_alloc_page()
899 folio_prep_large_rmappable((struct folio *)*hpage); in hpage_collapse_alloc_page()
1058 static int alloc_charge_hpage(struct page **hpage, struct mm_struct *mm, in alloc_charge_hpage() argument
1066 if (!hpage_collapse_alloc_page(hpage, gfp, node, &cc->alloc_nmask)) in alloc_charge_hpage()
1069 folio = page_folio(*hpage); in alloc_charge_hpage()
1072 *hpage = NULL; in alloc_charge_hpage()
1075 count_memcg_page_event(*hpage, THP_COLLAPSE_ALLOC); in alloc_charge_hpage()
1088 struct page *hpage; in collapse_huge_page() local
[all …]
Dhwpoison-inject.c18 struct page *hpage; in hwpoison_inject() local
28 hpage = compound_head(p); in hwpoison_inject()
33 shake_page(hpage); in hwpoison_inject()
37 if (!PageLRU(hpage) && !PageHuge(p) && !is_free_buddy_page(p)) in hwpoison_inject()
45 err = hwpoison_filter(hpage); in hwpoison_inject()
Dmemory-failure.c1186 struct page *hpage = compound_head(p); in me_huge_page() local
1190 mapping = page_mapping(hpage); in me_huge_page()
1192 res = truncate_error_page(hpage, page_to_pfn(p), mapping); in me_huge_page()
1195 unlock_page(hpage); in me_huge_page()
1197 unlock_page(hpage); in me_huge_page()
1203 put_page(hpage); in me_huge_page()
1551 int flags, struct page *hpage) in hwpoison_user_mappings() argument
1553 struct folio *folio = page_folio(hpage); in hwpoison_user_mappings()
1559 bool mlocked = PageMlocked(hpage); in hwpoison_user_mappings()
1567 if (!(PageLRU(hpage) || PageHuge(p))) in hwpoison_user_mappings()
[all …]
Dhugetlb.c2093 struct address_space *hugetlb_page_mapping_lock_write(struct page *hpage) in hugetlb_page_mapping_lock_write() argument
2095 struct address_space *mapping = page_mapping(hpage); in hugetlb_page_mapping_lock_write()
/Linux-v6.6/include/trace/events/
Dhuge_memory.h210 TP_PROTO(struct mm_struct *mm, struct page *hpage, pgoff_t index,
213 TP_ARGS(mm, hpage, index, addr, is_shmem, file, nr, result),
227 __entry->hpfn = hpage ? page_to_pfn(hpage) : -1;
/Linux-v6.6/io_uring/
Drsrc.c977 int nr_pages, struct page *hpage) in headpage_already_acct() argument
985 if (compound_head(pages[i]) == hpage) in headpage_already_acct()
996 if (compound_head(imu->bvec[j].bv_page) == hpage) in headpage_already_acct()
1015 struct page *hpage; in io_buffer_account_pin() local
1017 hpage = compound_head(pages[i]); in io_buffer_account_pin()
1018 if (hpage == *last_hpage) in io_buffer_account_pin()
1020 *last_hpage = hpage; in io_buffer_account_pin()
1021 if (headpage_already_acct(ctx, pages, i, hpage)) in io_buffer_account_pin()
1023 imu->acct_pages += page_size(hpage) >> PAGE_SHIFT; in io_buffer_account_pin()
/Linux-v6.6/arch/powerpc/kvm/
Dbook3s_pr.c647 struct page *hpage; in kvmppc_patch_dcbz() local
652 hpage = gfn_to_page(vcpu->kvm, pte->raddr >> PAGE_SHIFT); in kvmppc_patch_dcbz()
653 if (is_error_page(hpage)) in kvmppc_patch_dcbz()
660 get_page(hpage); in kvmppc_patch_dcbz()
661 page = kmap_atomic(hpage); in kvmppc_patch_dcbz()
669 put_page(hpage); in kvmppc_patch_dcbz()
/Linux-v6.6/Documentation/virt/kvm/x86/
Drunning-nested-guests.rst171 .. note:: On s390x, the kernel parameter ``hpage`` is mutually exclusive
173 ``nested``, the ``hpage`` parameter *must* be disabled.
/Linux-v6.6/include/linux/
Dhugetlb.h178 struct address_space *hugetlb_page_mapping_lock_write(struct page *hpage);
301 struct page *hpage) in hugetlb_page_mapping_lock_write() argument
/Linux-v6.6/arch/s390/kvm/
Dkvm-s390.c193 static int hpage; variable
194 module_param(hpage, int, 0444);
195 MODULE_PARM_DESC(hpage, "1m huge page backing support");
584 if (hpage && !kvm_is_ucontrol(kvm)) in kvm_vm_ioctl_check_extension()
838 else if (!hpage || kvm->arch.use_cmma || kvm_is_ucontrol(kvm)) in kvm_vm_ioctl_enable_cap()
5857 if (nested && hpage) { in kvm_s390_init()
/Linux-v6.6/kernel/trace/
Dring_buffer.c2062 struct buffer_page *hpage = rb_set_head_page(cpu_buffer); in rb_insert_pages() local
2064 if (!hpage) in rb_insert_pages()
2066 head_page = &hpage->list; in rb_insert_pages()
/Linux-v6.6/Documentation/virt/kvm/
Dapi.rst7270 :Returns: 0 on success, -EINVAL if hpage module parameter was not set
7278 hpage module parameter is not set to 1, -EINVAL is returned.