linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Dave McCracken <dmc@austin.ibm.com>
To: Rik van Riel <riel@conectiva.com.br>
Cc: linux-mm@kvack.org
Subject: Patch for swap usage of high memory
Date: Wed, 18 Jul 2001 13:15:07 -0500	[thread overview]
Message-ID: <12200000.995480107@baldur> (raw)

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/

                 reply	other threads:[~2001-07-18 18:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=12200000.995480107@baldur \
    --to=dmc@austin.ibm.com \
    --cc=linux-mm@kvack.org \
    --cc=riel@conectiva.com.br \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox