[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] 7/4 -ac to newer rmap
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/