All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] double flush_page_to_ram
@ 2002-05-09 12:03 Hugh Dickins
  2002-05-09 11:56 ` David S. Miller
  0 siblings, 1 reply; 12+ messages in thread
From: Hugh Dickins @ 2002-05-09 12:03 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: Andrew Morton, Christoph Rohland, David S. Miller, linux-kernel

filemap_nopage and shmem_nopage do flush_page_to_ram before returning
page, but do_no_page also does flush_page_to_ram on any page it slots
into the user address space.  It's memory.c's business, remove it from
shmem and filemap (and cut outdated comment from when filemap copied).

Hugh

--- 2.5.14/mm/filemap.c	Wed May  8 20:42:40 2002
+++ linux/mm/filemap.c	Thu May  9 12:49:10 2002
@@ -1532,12 +1532,7 @@
 		goto page_not_uptodate;
 
 success:
-	/*
-	 * Found the page and have a reference on it, need to check sharing
-	 * and possibly copy it over to another page..
-	 */
 	mark_page_accessed(page);
-	flush_page_to_ram(page);
 	return page;
 
 no_cached_page:
--- 2.5.14/mm/shmem.c	Wed May  1 12:22:32 2002
+++ linux/mm/shmem.c	Thu May  9 12:49:25 2002
@@ -638,7 +638,6 @@
 	if (shmem_getpage(inode, idx, &page))
 		return page;
 
-	flush_page_to_ram(page);
 	return(page);
 }
 


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2002-05-09 14:29 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-09 12:03 [PATCH] double flush_page_to_ram Hugh Dickins
2002-05-09 11:56 ` David S. Miller
2002-05-09 13:01   ` Andrea Arcangeli
2002-05-09 12:52     ` David S. Miller
2002-05-09 13:21       ` Andrea Arcangeli
2002-05-09 13:13         ` David S. Miller
2002-05-09 13:44           ` Andrea Arcangeli
2002-05-09 13:35             ` David S. Miller
2002-05-09 13:50         ` Hugh Dickins
2002-05-09 14:16           ` David S. Miller
2002-05-09 13:18   ` Hugh Dickins
2002-05-09 13:07     ` David S. Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.