Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3047876ybi; Sun, 28 Jul 2019 23:50:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqwVAXEVpOeuJGfj/Rn/6ctv7/46Pf96d6wV8UBWm3VhOj1oIoT4T0Rrt6GEkwSWAbbSnLc7 X-Received: by 2002:a17:90a:b387:: with SMTP id e7mr21040325pjr.113.1564383044097; Sun, 28 Jul 2019 23:50:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564383044; cv=none; d=google.com; s=arc-20160816; b=fHO2Gn1cXT4+EVUopBwGO5zAzoGVyTOogQGjtMVVRBXpy68fhhONuU4fUuiC3OkLjd oUYQtMZkyc560lh/bQVm/iokOYiMUhlkD4zFN7I0BouREnWaqmBjNIZWGpKi+MdmMxgc Ufl5kk9Xzx/gLr6h5n5HeoMcfWTVdk87QlCWIM+6mQrTzc8HNNCbVtau6saQMrsnWFtP vmkpofeNrzZcKg5GgI8OXEwy/IBPxxgGOklHXSqrZoKGTo0sUJsnOL2YPll5JFBBDH09 zh4wTrZ8LOireBLsuSUgrqz0ZiNO4/BL1SwP6R2mREy2uD/FOx8caAx2fCa3BF0fVZP3 vqzA== 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=Mpd/f2UHbkmNPwjBzNy0B1fPlV33JHH7cu3Mr80hg4Y=; b=Xg+aFXjmq9yj0YjR72CmBUsWwhlj2ES+HOsmFwhE+ZqwU2lMCc4ZtiFvfGgheTdsNP d65UJzdqCImJaJ6DNKJncbvoxZK5D2pl/1Gx3ST6VrSYQUmphth/mtMpjU+V8sWlcGfM Jco5yo7bufAGUrP7pTcxcr5FasrnirlOzmNY3g7nOTKNgVGjRqH15INeUMZAce4BOARI QHImJcQ36+vqvhJ8zuRW3w59+IJnSZMyJz26j+M1JfQP4k9qqZSjo8Qc2RYxf37G6Iuq MxrE0NMYNSx+8UBMDEiL1+9z/FJtIGOh7EqhiXU2HAioSELPVnXnmglRcfpF0ONWfllO CFvg== 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 g2si30823288pfq.160.2019.07.28.23.50.29; Sun, 28 Jul 2019 23:50:44 -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 S1726768AbfG2Gsr (ORCPT + 99 others); Mon, 29 Jul 2019 02:48:47 -0400 Received: from verein.lst.de ([213.95.11.211]:36940 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726088AbfG2Gsq (ORCPT ); Mon, 29 Jul 2019 02:48:46 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 03FB168B02; Mon, 29 Jul 2019 08:48:42 +0200 (CEST) Date: Mon, 29 Jul 2019 08:48:42 +0200 From: Christoph Hellwig To: Bharath Vedartham Cc: sivanich@sgi.com, arnd@arndb.de, ira.weiny@intel.com, jhubbard@nvidia.com, jglisse@redhat.com, gregkh@linuxfoundation.org, william.kucharski@oracle.com, hch@lst.de, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH v3 1/1] sgi-gru: Remove *pte_lookup functions Message-ID: <20190729064842.GA3853@lst.de> References: <1564170120-11882-1-git-send-email-linux.bhar@gmail.com> <1564170120-11882-2-git-send-email-linux.bhar@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1564170120-11882-2-git-send-email-linux.bhar@gmail.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 Sat, Jul 27, 2019 at 01:12:00AM +0530, Bharath Vedartham wrote: > + ret = get_user_pages_fast(vaddr, 1, write, &page); I think you want to pass "write ? FOLL_WRITE : 0" here, as get_user_pages_fast takes a gup_flags argument, not a boolean write flag.