From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: text/plain; charset="iso-8859-1" From: Daniel Phillips Subject: Re: [RFC] Page table sharing Date: Fri, 22 Feb 2002 07:32:31 +0100 References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: Sender: owner-linux-mm@kvack.org Return-Path: To: Linus Torvalds , Rik van Riel Cc: Hugh Dickins , dmccr@us.ibm.com, Kernel Mailing List , linux-mm@kvack.org, Robert Love , mingo@redhat.com, Andrew Morton , manfred@colorfullife.com, wli@holomorphy.com List-ID: The following gross mistake was noticed promptly by Rik van Riel: spin_lock(&page_table_share_lock); - if (page_count(virt_to_page(pte)) == 1) { + if (put_page_testzero(virt_to_page(pte))) { pmd_clear(dir); pte_free_slow(pte); } spin_unlock(&page_table_share_lock); However, oddly enough, that's not the memory leak. -- Daniel -- 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/