From cd7e4a91db4ea690f58420671e21153452236aeb Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Thu, 2 Sep 2004 20:20:58 -0700 Subject: [PATCH] add_to_swap(): suppress oom message Page allocation failures are expected when add_to_swap() tries to allocate radix-tree nodes without PF_MEMALLOC. Kill the __alloc_pages() warnings. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- mm/swap_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/swap_state.c b/mm/swap_state.c index 5717135766d9..6e81f2d52edc 100644 --- a/mm/swap_state.c +++ b/mm/swap_state.c @@ -171,7 +171,7 @@ int add_to_swap(struct page * page) /* * Add it to the swap cache and mark it dirty */ - err = __add_to_swap_cache(page, entry, GFP_ATOMIC); + err = __add_to_swap_cache(page, entry, GFP_ATOMIC|__GFP_NOWARN); if (pf_flags & PF_MEMALLOC) current->flags |= PF_MEMALLOC; -- cgit v1.2.3