linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] 9/4  -ac to newer rmap
@ 2002-11-13 14:50 Rik van Riel
  0 siblings, 0 replies; only message in thread
From: Rik van Riel @ 2002-11-13 14:50 UTC (permalink / raw)
  To: Alan Cox; +Cc: Arjan van de Ven, linux-mm

No need to check PageSwapCache(page) twice in a row.

(ObWork: my patches are sponsored by Conectiva, Inc)
--- linux-2.4.19/mm/page_io.c	2002-11-13 08:48:31.000000000 -0200
+++ linux-2.4-rmap/mm/page_io.c	2002-11-13 12:10:46.000000000 -0200
@@ -87,7 +87,6 @@ static int rw_swap_page_base(int rw, swp
  *  - it's marked as being swap-cache
  *  - it's associated with the swap inode
  */
-
 void rw_swap_page(int rw, struct page *page)
 {
 	swp_entry_t entry;
@@ -98,8 +97,6 @@ void rw_swap_page(int rw, struct page *p
 		PAGE_BUG(page);
 	if (!PageSwapCache(page))
 		PAGE_BUG(page);
-	if (page->mapping != &swapper_space)
-		PAGE_BUG(page);
 	if (!rw_swap_page_base(rw, entry, page))
 		UnlockPage(page);
 }
@@ -115,8 +112,6 @@ void rw_swap_page_nolock(int rw, swp_ent
 	
 	if (!PageLocked(page))
 		PAGE_BUG(page);
-	if (PageSwapCache(page))
-		PAGE_BUG(page);
 	if (page->mapping)
 		PAGE_BUG(page);
 	/* needs sync_page to wait I/O completation */
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-11-13 14:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-13 14:50 [PATCH] 9/4 -ac to newer rmap Rik van Riel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox