patch-2.2.0-pre5 linux/include/linux/swap.h

Next file: linux/include/linux/sysctl.h
Previous file: linux/include/linux/sound.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.0-pre4/linux/include/linux/swap.h linux/include/linux/swap.h
@@ -166,12 +166,7 @@
 		return 1;
 	count = atomic_read(&page->count);
 	if (PageSwapCache(page))
-	{
-		/* PARANOID */
-		if (page->inode != &swapper_inode)
-			panic("swap cache page has wrong inode\n");
 		count += swap_count(page->offset) - 2;
-	}
 	if (PageFreeAfter(page))
 		count--;
 	return  count > 1;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov