From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 6 Feb 2007 16:35:31 -0800 From: Andrew Morton Subject: Re: hugetlb: preserve hugetlb pte dirty state Message-Id: <20070206163531.8d524171.akpm@linux-foundation.org> In-Reply-To: References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org Return-Path: To: Ken Chen Cc: linux-mm@kvack.org List-ID: On Tue, 6 Feb 2007 13:06:39 -0800 "Ken Chen" wrote: > --- ./mm/hugetlb.c.orig 2007-02-06 08:28:33.000000000 -0800 > +++ ./mm/hugetlb.c 2007-02-06 08:29:47.000000000 -0800 > @@ -389,6 +389,8 @@ > continue; > > page = pte_page(pte); > + if (pte_dirty(pte)) > + set_page_dirty(page); > list_add(&page->lru, &page_list); > } > spin_unlock(&mm->page_table_lock); I guess we really should be setting these pages dirty at fault-time, as we're now doing with regular pages. -- 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/ . Don't email: email@kvack.org