Lines Matching refs:hpage
980 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()
1276 if (!(PageLRU(hpage) || PageHuge(p))) in hwpoison_user_mappings()
1283 if (!page_mapped(hpage)) in hwpoison_user_mappings()
1303 mapping = page_mapping(hpage); in hwpoison_user_mappings()
1304 if (!(flags & MF_MUST_KILL) && !PageDirty(hpage) && mapping && in hwpoison_user_mappings()
1306 if (page_mkclean(hpage)) { in hwpoison_user_mappings()
1307 SetPageDirty(hpage); in hwpoison_user_mappings()
1325 collect_procs(hpage, &tokill, flags & MF_ACTION_REQUIRED); in hwpoison_user_mappings()
1327 if (!PageHuge(hpage)) { in hwpoison_user_mappings()
1328 try_to_unmap(hpage, ttu); in hwpoison_user_mappings()
1330 if (!PageAnon(hpage)) { in hwpoison_user_mappings()
1338 mapping = hugetlb_page_mapping_lock_write(hpage); in hwpoison_user_mappings()
1340 try_to_unmap(hpage, ttu|TTU_RMAP_LOCKED); in hwpoison_user_mappings()
1345 try_to_unmap(hpage, ttu); in hwpoison_user_mappings()
1349 unmap_success = !page_mapped(hpage); in hwpoison_user_mappings()
1352 pfn, page_mapcount(hpage)); in hwpoison_user_mappings()
1359 shake_page(hpage); in hwpoison_user_mappings()
1371 forcekill = PageDirty(hpage) || (flags & MF_MUST_KILL); in hwpoison_user_mappings()
1610 struct page *hpage; in memory_failure() local
1651 orig_head = hpage = compound_head(p); in memory_failure()
1696 if (PageTransHuge(hpage)) { in memory_failure()
1710 SetPageHasHWPoisoned(hpage); in memory_failure()
2057 struct page *hpage = compound_head(page); in __soft_offline_page() local
2100 if (isolate_page(hpage, &pagelist)) { in __soft_offline_page()
2127 struct page *hpage = compound_head(page); in soft_offline_in_use_page() local
2129 if (!PageHuge(page) && PageTransHuge(hpage)) in soft_offline_in_use_page()