patch-2.3.99-pre4 linux/mm/swap_state.c
Next file: linux/mm/swapfile.c
Previous file: linux/mm/slab.c
Back to the patch index
Back to the overall index
-  Lines: 21
-  Date:
Tue Apr  4 14:36:13 2000
-  Orig file: 
v2.3.99-pre3/linux/mm/swap_state.c
-  Orig date: 
Tue Dec  7 09:32:52 1999
diff -u --recursive --new-file v2.3.99-pre3/linux/mm/swap_state.c linux/mm/swap_state.c
@@ -88,6 +88,9 @@
  */
 void delete_from_swap_cache_nolock(struct page *page)
 {
+	if (!PageLocked(page))
+		BUG();
+
 	if (block_flushpage(page, 0))
 		lru_cache_del(page);
 
@@ -122,8 +125,8 @@
 		}
 		UnlockPage(page);
 	}
-	
-	clear_bit(PG_swap_entry, &page->flags);
+
+	ClearPageSwapEntry(page);
 
 	__free_page(page);
 }
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)