patch-2.4.20 linux-2.4.20/mm/swap_state.c

Next file: linux-2.4.20/mm/vmalloc.c
Previous file: linux-2.4.20/mm/swap.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.19/mm/swap_state.c linux-2.4.20/mm/swap_state.c
@@ -117,7 +117,8 @@
 	if (!PageLocked(page))
 		BUG();
 
-	block_flushpage(page, 0);
+	if (unlikely(!block_flushpage(page, 0)))
+		BUG();	/* an anonymous page cannot have page->buffers set */
 
 	entry.val = page->index;
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)