From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail143.messagelabs.com (mail143.messagelabs.com [216.82.254.35]) by kanga.kvack.org (Postfix) with ESMTP id 164288D0039 for ; Mon, 7 Mar 2011 05:35:20 -0500 (EST) Received: from hpaq14.eem.corp.google.com (hpaq14.eem.corp.google.com [172.25.149.14]) by smtp-out.google.com with ESMTP id p27AZHXg002057 for ; Mon, 7 Mar 2011 02:35:18 -0800 Received: from gye5 (gye5.prod.google.com [10.243.50.5]) by hpaq14.eem.corp.google.com with ESMTP id p27AZ6Fw024526 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Mon, 7 Mar 2011 02:35:16 -0800 Received: by gye5 with SMTP id 5so1899143gye.38 for ; Mon, 07 Mar 2011 02:35:16 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: Date: Mon, 7 Mar 2011 02:35:15 -0800 Message-ID: Subject: Re: THP, rmap and page_referenced_one() From: Michel Lespinasse Content-Type: text/plain; charset=ISO-8859-1 Sender: owner-linux-mm@kvack.org List-ID: To: Minchan Kim Cc: Andrea Arcangeli , Rik van Riel , Hugh Dickins , Andrew Morton , linux-mm There is also the issue that *mapcount will be decremented even if the pmd turns out not to point to the given page. page_referenced() will stop looking at rmap's candidate mappings once the refcount hits zero, so the decrement will cause an actual mapping to be ignored. -- Michel "Walken" Lespinasse A program is never fully debugged until the last user dies. -- 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/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org