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
- Lines: 10
- Date:
Thu Nov 28 15:53:15 2002
- Orig file:
linux-2.4.19/mm/swap_state.c
- Orig date:
Wed Oct 31 15:31:03 2001
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)