linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] 7/4  -ac to newer rmap
@ 2002-11-13 14:50 Rik van Riel
  2002-11-13 19:46 ` Andrew Morton
  0 siblings, 1 reply; 2+ messages in thread
From: Rik van Riel @ 2002-11-13 14:50 UTC (permalink / raw)
  To: Alan Cox; +Cc: Arjan van de Ven, linux-mm

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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-11-13 19:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-13 14:50 [PATCH] 7/4 -ac to newer rmap Rik van Riel
2002-11-13 19:46 ` Andrew Morton

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