From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934275AbZHEP7J (ORCPT ); Wed, 5 Aug 2009 11:59:09 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S934012AbZHEP7I (ORCPT ); Wed, 5 Aug 2009 11:59:08 -0400 Received: from mx2.redhat.com ([66.187.237.31]:44458 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933644AbZHEP7H (ORCPT ); Wed, 5 Aug 2009 11:59:07 -0400 Date: Wed, 5 Aug 2009 17:58:05 +0200 From: Andrea Arcangeli To: Wu Fengguang Cc: Rik van Riel , "Dike, Jeffrey G" , "Yu, Wilfred" , "Kleen, Andi" , Avi Kivity , Hugh Dickins , Andrew Morton , Christoph Lameter , KOSAKI Motohiro , Mel Gorman , LKML , linux-mm Subject: Re: [RFC] respect the referenced bit of KVM guest pages? Message-ID: <20090805155805.GC23385@random.random> References: <20090805024058.GA8886@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090805024058.GA8886@localhost> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 05, 2009 at 10:40:58AM +0800, Wu Fengguang wrote: > */ > - if ((vm_flags & VM_EXEC) && !PageAnon(page)) { > + if ((vm_flags & VM_EXEC) || PageAnon(page)) { > list_add(&page->lru, &l_active); > continue; > } > Please nuke the whole check and do an unconditional list_add; continue; there.