linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Rik van Riel <riel@conectiva.com.br>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Arjan van de Ven <arjanv@redhat.com>, linux-mm@kvack.org
Subject: [PATCH] 7/4  -ac to newer rmap
Date: Wed, 13 Nov 2002 12:50:01 -0200	[thread overview]
Message-ID: <20021113145002Z80262-18062+21@imladris.surriel.com> (raw)

I guess that after a truncate() and maybe some special ext3 transactions
anonymous pages can have page->buffers set. Not quite sure about delete
from swap cache, though ... maybe the reverse of this patch should be
applied into the -rmap tree and mainline instead ?

(ObWork: my patches are sponsored by Conectiva, Inc)

--- linux-2.4.19/mm/swap_state.c	2002-11-13 08:48:32.000000000 -0200
+++ linux-2.4-rmap/mm/swap_state.c	2002-11-13 12:10:46.000000000 -0200
@@ -151,8 +151,7 @@
 	if (!PageLocked(page))
 		BUG();
 
-	if (unlikely(!block_flushpage(page, 0)))
-		PAGE_BUG(page);	/* an anonymous page cannot have page->buffers set */
+	block_flushpage(page, 0);
 
 	entry.val = page->index;
 
--
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:[~2002-11-13 14:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-13 14:50 Rik van Riel [this message]
2002-11-13 19:46 ` Andrew Morton

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=20021113145002Z80262-18062+21@imladris.surriel.com \
    --to=riel@conectiva.com.br \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=arjanv@redhat.com \
    --cc=linux-mm@kvack.org \
    /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