Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11782669ybi; Thu, 25 Jul 2019 23:25:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqwsWSiun71+EkKnGzEq+m8ObUBYxtWlGhFzJIneFiE2fvYM4CHW3te04nDlBkSVqc8hbvCH X-Received: by 2002:aa7:84d4:: with SMTP id x20mr20332808pfn.60.1564122353105; Thu, 25 Jul 2019 23:25:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564122353; cv=none; d=google.com; s=arc-20160816; b=VPw1R09ibk92HfOLTrt5EaRNPqnDZ3tQf+NqU2FTVSJIGkEmpGlpT4NHiWddLFwMRW MF0J9dVjvfZ2jg0srtlIuV/EURzK/bIGAQAk/4qJ0PoTQ1w9oBuSBFWY3KzksK6bZyf6 v+A7NsFHQHg+8Z+HeG94roqjKOerwXzcuR6+PtK3GoKX1+/A9cztri2zEHO0+Tp27HRf uU1pkg0JmlA7noGeNYfG3Q/NST5u7kPAh4AcMFk6ZVblSLYeMiA4B2WWKz/qoD6VmeN4 fYLQMfDGFO/tpVxPKFe0TmkH5tqLDyo1IYgAuziBj+QHI2dTCq+JxRtkuiLS/IzypXUo ofdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=I3OpueK2zeUR3koT1HF3cu4uN3hkZegZDgBRgjyi2mU=; b=sYfPqqZ3zncmw/NjCmo2LJibIdyoALkiRdALUFDQHiuV82lLeuFPP4zKsEVdmE6M66 XS8EdaB3mpXvTkVVPNjwUWwjE5MGbqf1/F2PUSr9b2shmmxI2bfjyMbDEeicdhPkkmIT PIw5xOGlKlW4wLVXvZ5leCHMhJHgCn/FxlJpQicAZJRZjd5ZlGCseJtB/BbZ/4gIfhZy hFfaAODkaF/gjvV9ZUqy0SZd9JR2MnzcSgyH9T16lbQ/yhPMziuXzhUMwjrQvWEwOmV4 Opn/cfl3O3Y5aOX/Q8oyLS8baOS3eHfe4NTgumOag2PNqKH5/73EIx2+YzQ+lfCZ1FKT aL1w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q10si16738866pls.42.2019.07.25.23.25.38; Thu, 25 Jul 2019 23:25:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726260AbfGZGYk (ORCPT + 99 others); Fri, 26 Jul 2019 02:24:40 -0400 Received: from verein.lst.de ([213.95.11.211]:41759 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725869AbfGZGYk (ORCPT ); Fri, 26 Jul 2019 02:24:40 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 75E5C68BFE; Fri, 26 Jul 2019 08:24:37 +0200 (CEST) Date: Fri, 26 Jul 2019 08:24:37 +0200 From: Christoph Hellwig To: Ralph Campbell Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, =?iso-8859-1?B?Suly9G1l?= Glisse , Jason Gunthorpe , Christoph Hellwig Subject: Re: [PATCH v2 6/7] mm/hmm: remove hugetlbfs check in hmm_vma_walk_pmd Message-ID: <20190726062437.GC22881@lst.de> References: <20190726005650.2566-1-rcampbell@nvidia.com> <20190726005650.2566-7-rcampbell@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190726005650.2566-7-rcampbell@nvidia.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 25, 2019 at 05:56:49PM -0700, Ralph Campbell wrote: > walk_page_range() will only call hmm_vma_walk_hugetlb_entry() for > hugetlbfs pages and doesn't call hmm_vma_walk_pmd() in this case. > Therefore, it is safe to remove the check for vma->vm_flags & VM_HUGETLB > in hmm_vma_walk_pmd(). > > Signed-off-by: Ralph Campbell Looks good, Reviewed-by: Christoph Hellwig