Lines Matching refs:hpage
786 struct page *hpage = compound_head(p); in me_huge_page() local
789 if (!PageHuge(hpage)) in me_huge_page()
792 mapping = page_mapping(hpage); in me_huge_page()
794 res = truncate_error_page(hpage, pfn, mapping); in me_huge_page()
796 unlock_page(hpage); in me_huge_page()
802 if (PageAnon(hpage)) in me_huge_page()
803 put_page(hpage); in me_huge_page()
806 lock_page(hpage); in me_huge_page()
973 struct page *hpage = *hpagep; in hwpoison_user_mappings() local
974 bool mlocked = PageMlocked(hpage); in hwpoison_user_mappings()
982 if (!(PageLRU(hpage) || PageHuge(p))) in hwpoison_user_mappings()
989 if (!page_mapped(hpage)) in hwpoison_user_mappings()
1009 mapping = page_mapping(hpage); in hwpoison_user_mappings()
1010 if (!(flags & MF_MUST_KILL) && !PageDirty(hpage) && mapping && in hwpoison_user_mappings()
1012 if (page_mkclean(hpage)) { in hwpoison_user_mappings()
1013 SetPageDirty(hpage); in hwpoison_user_mappings()
1031 collect_procs(hpage, &tokill, flags & MF_ACTION_REQUIRED); in hwpoison_user_mappings()
1033 unmap_success = try_to_unmap(hpage, ttu); in hwpoison_user_mappings()
1036 pfn, page_mapcount(hpage)); in hwpoison_user_mappings()
1043 shake_page(hpage, 0); in hwpoison_user_mappings()
1055 forcekill = PageDirty(hpage) || (flags & MF_MUST_KILL); in hwpoison_user_mappings()
1251 struct page *hpage; in memory_failure() local
1281 orig_head = hpage = compound_head(p); in memory_failure()
1305 if (PageTransHuge(hpage)) { in memory_failure()
1322 hpage = compound_head(p); in memory_failure()
1363 page_flags = hpage->flags; in memory_failure()
1401 if (!hwpoison_user_mappings(p, pfn, flags, &hpage)) { in memory_failure()
1687 struct page *hpage = compound_head(page); in soft_offline_huge_page() local
1694 lock_page(hpage); in soft_offline_huge_page()
1695 if (PageHWPoison(hpage)) { in soft_offline_huge_page()
1696 unlock_page(hpage); in soft_offline_huge_page()
1697 put_hwpoison_page(hpage); in soft_offline_huge_page()
1701 unlock_page(hpage); in soft_offline_huge_page()
1703 ret = isolate_huge_page(hpage, &pagelist); in soft_offline_huge_page()
1708 put_hwpoison_page(hpage); in soft_offline_huge_page()
1826 struct page *hpage = compound_head(page); in soft_offline_in_use_page() local
1828 if (!PageHuge(page) && PageTransHuge(hpage)) { in soft_offline_in_use_page()