lkml.org 
[lkml]   [2005]   [Sep]   [26]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateMon, 26 Sep 2005 08:20:35 +0100 (BST)
FromHugh Dickins <>
SubjectRe: [PATCH 04/21] mm: zap_pte_range dont dirty anon
On Sun, 25 Sep 2005, Andrew Morton wrote:
> 
> 	mmap(MAP_ANONYMOUS|MAP_SHARED)
> 	fork()
> 	swapout
> 	swapin
> 	swapoff
> 
> Now we have two mm's sharing a clean, non-cowable, non-swapcache anonymous
> page, no?

No, MAP_ANONYMOUS|MAP_SHARED gives you a tmpfs object via shmem_zero_setup:
all those pages are shared file pages, not PageAnon at all.
Hugh
-
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/

\
 
 \ /
  Last update: 2005-09-26 07:23    [W:1.337 / U:0.570 seconds]
©2003-2008 Jasper Spaans