• Home
  • Raw
  • Download

Lines Matching refs:pages

1210 	struct page **pages;  in do_huge_pmd_wp_page_fallback()  local
1213 pages = kmalloc_array(HPAGE_PMD_NR, sizeof(struct page *), in do_huge_pmd_wp_page_fallback()
1215 if (unlikely(!pages)) { in do_huge_pmd_wp_page_fallback()
1221 pages[i] = alloc_page_vma_node(GFP_HIGHUSER_MOVABLE, vma, in do_huge_pmd_wp_page_fallback()
1223 if (unlikely(!pages[i] || in do_huge_pmd_wp_page_fallback()
1224 mem_cgroup_try_charge_delay(pages[i], vma->vm_mm, in do_huge_pmd_wp_page_fallback()
1226 if (pages[i]) in do_huge_pmd_wp_page_fallback()
1227 put_page(pages[i]); in do_huge_pmd_wp_page_fallback()
1229 memcg = (void *)page_private(pages[i]); in do_huge_pmd_wp_page_fallback()
1230 set_page_private(pages[i], 0); in do_huge_pmd_wp_page_fallback()
1231 mem_cgroup_cancel_charge(pages[i], memcg, in do_huge_pmd_wp_page_fallback()
1233 put_page(pages[i]); in do_huge_pmd_wp_page_fallback()
1235 kfree(pages); in do_huge_pmd_wp_page_fallback()
1239 set_page_private(pages[i], (unsigned long)memcg); in do_huge_pmd_wp_page_fallback()
1243 copy_user_highpage(pages[i], page + i, in do_huge_pmd_wp_page_fallback()
1245 __SetPageUptodate(pages[i]); in do_huge_pmd_wp_page_fallback()
1273 entry = mk_pte(pages[i], vma->vm_page_prot); in do_huge_pmd_wp_page_fallback()
1275 memcg = (void *)page_private(pages[i]); in do_huge_pmd_wp_page_fallback()
1276 set_page_private(pages[i], 0); in do_huge_pmd_wp_page_fallback()
1277 page_add_new_anon_rmap(pages[i], vmf->vma, haddr, false); in do_huge_pmd_wp_page_fallback()
1278 mem_cgroup_commit_charge(pages[i], memcg, false, false); in do_huge_pmd_wp_page_fallback()
1279 lru_cache_add_active_or_unevictable(pages[i], vma); in do_huge_pmd_wp_page_fallback()
1285 kfree(pages); in do_huge_pmd_wp_page_fallback()
1308 memcg = (void *)page_private(pages[i]); in do_huge_pmd_wp_page_fallback()
1309 set_page_private(pages[i], 0); in do_huge_pmd_wp_page_fallback()
1310 mem_cgroup_cancel_charge(pages[i], memcg, false); in do_huge_pmd_wp_page_fallback()
1311 put_page(pages[i]); in do_huge_pmd_wp_page_fallback()
1313 kfree(pages); in do_huge_pmd_wp_page_fallback()