--- 2.4.19-pre10/mm/swapfile.c Tue Jun 4 13:54:20 2002
+++ linux/mm/swapfile.c Tue Jun 11 19:02:30 2002
@@ -671,10 +671,7 @@
* private" pages, but they are handled by tmpfs files.
* Note shmem_unuse already deleted its from swap cache.
*/
- swcount = *swap_map;
- if ((swcount > 0) != PageSwapCache(page))
- BUG();
- if ((swcount > 1) && PageDirty(page)) {
+ if ((*swap_map > 1) && PageDirty(page) && PageSwapCache(page)) {
rw_swap_page(WRITE, page);
lock_page(page);
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/