From a4fc9e261f62117d6b67578795126b30dff02d02 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Thu, 11 Mar 2004 16:19:04 -0800 Subject: [PATCH] [PATCH] add nowarn to a few pte chain allocators From: Arjan van de Ven Several of the pte_chain_alloc() allocators that use GFP_ATOMIC have a fallback for failure that sleeps; they thus need to not warn on failure.. Seen during a big fork on a busy system. --- mm/memory.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/memory.c b/mm/memory.c index 2540e2dcf7d7b..5f55fb89149fc 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -222,7 +222,7 @@ int copy_page_range(struct mm_struct *dst, struct mm_struct *src, if (is_vm_hugetlb_page(vma)) return copy_hugetlb_page_range(dst, src, vma); - pte_chain = pte_chain_alloc(GFP_ATOMIC); + pte_chain = pte_chain_alloc(GFP_ATOMIC | __GFP_NOWARN); if (!pte_chain) { spin_unlock(&dst->page_table_lock); pte_chain = pte_chain_alloc(GFP_KERNEL); @@ -335,7 +335,7 @@ skip_copy_pte_range: pte_chain); if (pte_chain) goto cont_copy_pte_range_noset; - pte_chain = pte_chain_alloc(GFP_ATOMIC); + pte_chain = pte_chain_alloc(GFP_ATOMIC | __GFP_NOWARN); if (pte_chain) goto cont_copy_pte_range_noset; @@ -1336,7 +1336,7 @@ do_anonymous_page(struct mm_struct *mm, struct vm_area_struct *vma, struct pte_chain *pte_chain; int ret; - pte_chain = pte_chain_alloc(GFP_ATOMIC); + pte_chain = pte_chain_alloc(GFP_ATOMIC | __GFP_NOWARN); if (!pte_chain) { pte_unmap(page_table); spin_unlock(&mm->page_table_lock); -- 2.53.0