From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758094Ab0KSWPh (ORCPT ); Fri, 19 Nov 2010 17:15:37 -0500 Received: from waste.org ([173.11.57.241]:59698 "EHLO waste.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757892Ab0KSWPM (ORCPT ); Fri, 19 Nov 2010 17:15:12 -0500 Subject: Re: [PATCH] mm: remove call to find_vma in pagewalk for non-hugetlbfs From: Matt Mackall To: David Sterba Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Naoya Horiguchi , Andi Kleen , Andy Whitcroft , David Rientjes , Hugh Dickins , Lee Schermerhorn , Mel Gorman , Wu Fengguang In-Reply-To: <1290127197-20360-1-git-send-email-dsterba@suse.cz> References: <1290127197-20360-1-git-send-email-dsterba@suse.cz> Content-Type: text/plain; charset="UTF-8" Date: Fri, 19 Nov 2010 14:09:17 -0600 Message-ID: <1290197357.26343.944.camel@calx> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2010-11-19 at 01:39 +0100, David Sterba wrote: > Commit d33b9f45 introduces a check if a vma is a hugetlbfs one and > later in 5dc37642 is moved under #ifdef CONFIG_HUGETLB_PAGE but > a needless find_vma call is left behind and it's result not used > anywhere else in the function. > > The sideefect of caching vma for @addr inside walk->mm is neither > utilized in walk_page_range() nor in called functions. Looks good to me. Acked-by: Matt Mackall -- Mathematics is the supreme nostalgia of our time.