linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Patch for swap usage of high memory
@ 2001-07-18 18:15 Dave McCracken
  0 siblings, 0 replies; only message in thread
From: Dave McCracken @ 2001-07-18 18:15 UTC (permalink / raw)
  To: Rik van Riel; +Cc: linux-mm

This patch fixes the problem where pages allocated for swap space reads 
will not be allocated from high memory.

Rik, could you please forward this to the kernel mailing list?  I am 
temporarily unable to reach it directly due to ECN problems.

Thanks,
Dave McCracken

--------

--- linux-2.4.6/mm/swap_state.c	Mon Jun 11 21:15:27 2001
+++ linux-2.4.6-mm/mm/swap_state.c	Wed Jul 18 12:56:01 2001
@@ -226,7 +226,7 @@
 	if (found_page)
 		goto out_free_swap;

-	new_page = alloc_page(GFP_USER);
+	new_page = alloc_page(GFP_HIGHUSER);
 	if (!new_page)
 		goto out_free_swap;	/* Out of memory */

--------

======================================================================
Dave McCracken          IBM Linux Base Kernel Team      1-512-838-3059
dmc@austin.ibm.com                                      T/L   678-3059

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-07-18 18:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-18 18:15 Patch for swap usage of high memory Dave McCracken

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox