Home
last modified time | relevance | path

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

/Linux-v5.15/fs/verity/
Dverify.c43 static void extract_hash(struct page *hpage, unsigned int hoffset, in extract_hash() argument
46 void *virt = kmap_atomic(hpage); in extract_hash()
114 struct page *hpage; in verify_page() local
121 hpage = inode->i_sb->s_vop->read_merkle_tree_page(inode, hindex, in verify_page()
123 if (IS_ERR(hpage)) { in verify_page()
124 err = PTR_ERR(hpage); in verify_page()
131 if (PageChecked(hpage)) { in verify_page()
132 extract_hash(hpage, hoffset, hsize, _want_hash); in verify_page()
134 put_page(hpage); in verify_page()
141 hpages[level] = hpage; in verify_page()
[all …]
/Linux-v5.15/mm/
Dkhugepaged.c862 static bool khugepaged_prealloc_page(struct page **hpage, bool *wait) in khugepaged_prealloc_page() argument
864 if (IS_ERR(*hpage)) { in khugepaged_prealloc_page()
869 *hpage = NULL; in khugepaged_prealloc_page()
871 } else if (*hpage) { in khugepaged_prealloc_page()
872 put_page(*hpage); in khugepaged_prealloc_page()
873 *hpage = NULL; in khugepaged_prealloc_page()
880 khugepaged_alloc_page(struct page **hpage, gfp_t gfp, int node) in khugepaged_alloc_page() argument
882 VM_BUG_ON_PAGE(*hpage, *hpage); in khugepaged_alloc_page()
884 *hpage = __alloc_pages_node(node, gfp, HPAGE_PMD_ORDER); in khugepaged_alloc_page()
885 if (unlikely(!*hpage)) { in khugepaged_alloc_page()
[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)) in hwpoison_inject()
45 err = hwpoison_filter(hpage); in hwpoison_inject()
Dmemory-failure.c980 struct page *hpage = compound_head(p); in me_huge_page() local
983 if (!PageHuge(hpage)) in me_huge_page()
986 mapping = page_mapping(hpage); in me_huge_page()
988 res = truncate_error_page(hpage, pfn, mapping); in me_huge_page()
989 unlock_page(hpage); in me_huge_page()
992 unlock_page(hpage); in me_huge_page()
998 if (PageAnon(hpage)) in me_huge_page()
999 put_page(hpage); in me_huge_page()
1261 int flags, struct page *hpage) in hwpoison_user_mappings() argument
1268 bool mlocked = PageMlocked(hpage); in hwpoison_user_mappings()
[all …]
Dmigrate.c1278 struct page *hpage, int force, in unmap_and_move_huge_page() argument
1295 if (!hugepage_migration_supported(page_hstate(hpage))) { in unmap_and_move_huge_page()
1296 list_move_tail(&hpage->lru, ret); in unmap_and_move_huge_page()
1300 if (page_count(hpage) == 1) { in unmap_and_move_huge_page()
1302 putback_active_hugepage(hpage); in unmap_and_move_huge_page()
1306 new_hpage = get_new_page(hpage, private); in unmap_and_move_huge_page()
1310 if (!trylock_page(hpage)) { in unmap_and_move_huge_page()
1320 lock_page(hpage); in unmap_and_move_huge_page()
1328 if (hugetlb_page_subpool(hpage) && !page_mapping(hpage)) { in unmap_and_move_huge_page()
1333 if (PageAnon(hpage)) in unmap_and_move_huge_page()
[all …]
Dhugetlb.c1767 struct address_space *hugetlb_page_mapping_lock_write(struct page *hpage) in hugetlb_page_mapping_lock_write() argument
1769 struct address_space *mapping = page_mapping(hpage); in hugetlb_page_mapping_lock_write()
/Linux-v5.15/drivers/dma-buf/
Dudmabuf.c173 struct page *page, *hpage = NULL; in udmabuf_create() local
227 if (!hpage) { in udmabuf_create()
228 hpage = find_get_page_flags(mapping, pgoff, in udmabuf_create()
230 if (!hpage) { in udmabuf_create()
235 page = hpage + subpgoff; in udmabuf_create()
239 put_page(hpage); in udmabuf_create()
240 hpage = NULL; in udmabuf_create()
256 if (hpage) { in udmabuf_create()
257 put_page(hpage); in udmabuf_create()
258 hpage = NULL; in udmabuf_create()
/Linux-v5.15/include/linux/
Dhugetlb.h180 struct address_space *hugetlb_page_mapping_lock_write(struct page *hpage);
227 struct page *hpage) in hugetlb_page_mapping_lock_write() argument
659 static inline struct hugepage_subpool *hugetlb_page_subpool(struct page *hpage) in hugetlb_page_subpool() argument
661 return (void *)page_private(hpage + SUBPAGE_INDEX_SUBPOOL); in hugetlb_page_subpool()
664 static inline void hugetlb_set_page_subpool(struct page *hpage, in hugetlb_set_page_subpool() argument
667 set_page_private(hpage + SUBPAGE_INDEX_SUBPOOL, (unsigned long)subpool); in hugetlb_set_page_subpool()
906 static inline struct hugepage_subpool *hugetlb_page_subpool(struct page *hpage)
/Linux-v5.15/arch/powerpc/kvm/
Dbook3s_pr.c642 struct page *hpage; in kvmppc_patch_dcbz() local
647 hpage = gfn_to_page(vcpu->kvm, pte->raddr >> PAGE_SHIFT); in kvmppc_patch_dcbz()
648 if (is_error_page(hpage)) in kvmppc_patch_dcbz()
655 get_page(hpage); in kvmppc_patch_dcbz()
656 page = kmap_atomic(hpage); in kvmppc_patch_dcbz()
664 put_page(hpage); in kvmppc_patch_dcbz()
/Linux-v5.15/Documentation/virt/kvm/
Drunning-nested-guests.rst169 .. note:: On s390x, the kernel parameter ``hpage`` is mutually exclusive
171 ``nested``, the ``hpage`` parameter *must* be disabled.
Dapi.rst6401 :Returns: 0 on success, -EINVAL if hpage module parameter was not set
6409 hpage module parameter is not set to 1, -EINVAL is returned.
/Linux-v5.15/arch/s390/kvm/
Dkvm-s390.c191 static int hpage; variable
192 module_param(hpage, int, 0444);
193 MODULE_PARM_DESC(hpage, "1m huge page backing support");
574 if (hpage && !kvm_is_ucontrol(kvm)) in kvm_vm_ioctl_check_extension()
788 else if (!hpage || kvm->arch.use_cmma || kvm_is_ucontrol(kvm)) in kvm_vm_ioctl_enable_cap()
5098 if (nested && hpage) { in kvm_s390_init()
/Linux-v5.15/fs/
Dio_uring.c8873 int nr_pages, struct page *hpage) in headpage_already_acct() argument
8881 if (compound_head(pages[i]) == hpage) in headpage_already_acct()
8892 if (compound_head(imu->bvec[j].bv_page) == hpage) in headpage_already_acct()
8911 struct page *hpage; in io_buffer_account_pin() local
8913 hpage = compound_head(pages[i]); in io_buffer_account_pin()
8914 if (hpage == *last_hpage) in io_buffer_account_pin()
8916 *last_hpage = hpage; in io_buffer_account_pin()
8917 if (headpage_already_acct(ctx, pages, i, hpage)) in io_buffer_account_pin()
8919 imu->acct_pages += page_size(hpage) >> PAGE_SHIFT; in io_buffer_account_pin()