Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4594920ybi; Tue, 30 Jul 2019 04:55:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqwCyITrftWPWfIEMME766xlUqF9wYXnBzNNkwldKcJ6ZRpB0+z3dI1WxRG8yHNcxMan7VJa X-Received: by 2002:a63:5d54:: with SMTP id o20mr92485689pgm.413.1564487702467; Tue, 30 Jul 2019 04:55:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564487702; cv=none; d=google.com; s=arc-20160816; b=HY2IAg/Gh4ZBnFIOKmKVv34lJ38amFSBpiA6PywkGleAhFAJf/TsILul2f1gswi2cy OzADlt/HRMtfwhtn6uoqHjLyWsqDGiO9wtmSD7YQ8FxOLMMkmi5wlYuuOsG7nAJhYVA9 UPaJT02Vo20ZGdmJBkam/xMw1W3LeKqjKj4zLixn3Rew/Hp+a2HOcuLsxqdKJePfv3Ie vGuAR9AEYp2SrYDG8Mi7WkefP2kKiyETiWag7cN7SeAeO+VWyeLaDGPNMX87nUiRV8A3 H1oHSSGq66Kj7N2k2KvADHJRqkPiZko37yvYA52BrFyDkybi4U+ymvF6ggZn8+4Us4n1 sCrA== 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:dkim-signature; bh=B41dOFAL1OVXzo32k2PddSinndYgRrLzOceWuj2dYcs=; b=fjoWMW4NQuTQyID8lbmu2Qp5+xurHcO/SR/QqES8236hkP8FD3ClwjRTyShT3qMKGP yX8SqW738krBL5v0a3WqvRdFaCDvGZaWVL76VEKn4BFHn9Uf5CIlb0UCijZvo0HHXOOS d/HdTCMCMT7kkPT+9dqkP/N5IEG+QqucTQUjwwOFVLG+Gad6MOwBBKxhF4Bshop1n2Sx dpm4EuejewjVFc5L8pyTK85lsv74kiknHSi3FcEnAQs9QRk3O7q5JOaFVBMkqdzaGqTp /F0QGCkRFuztnlzfvr26E0vhbXc7HstOfYxTqJYcQCrZQzUCNnK6CJhWiWfNtYMjp7sh mu1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=i7Nt6xRk; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d8si57379017pgv.61.2019.07.30.04.54.47; Tue, 30 Jul 2019 04:55:02 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=i7Nt6xRk; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732596AbfG3K0V (ORCPT + 99 others); Tue, 30 Jul 2019 06:26:21 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:40312 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727156AbfG3K0V (ORCPT ); Tue, 30 Jul 2019 06:26:21 -0400 Received: by mail-pf1-f194.google.com with SMTP id p184so29601421pfp.7 for ; Tue, 30 Jul 2019 03:26:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=B41dOFAL1OVXzo32k2PddSinndYgRrLzOceWuj2dYcs=; b=i7Nt6xRkRfvFCCVipqPhPmUZyVmjuAdk9XvMcLtySbCYdYJr0vMsYhkTiIE9qVDOHK SYduOpEPzNTNU5fL7XIet0nzi6Hb0+Y3MRI3ycdjx2r32drhNk7ebQNjBQGTP9L3tAY3 xKPu4OsR0YLH3RZC2tU5A2nV/QJ67w+i5ahlw1mXgS6rsDAYqvvDJLJJNvBcXv3GIew9 y79fPpsjqTXZT9WvjGuTCjzDuG1NsHjVuLpPyPCoLsV/cBeumt/X/6hYWs1CZ10UZnb3 wzAqKqygyn9ZasPXv3I83Lsa1RI3RpJFi48CFo98NxQjSZfnpYYDmXF1k5mbARh5QCQk TFew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=B41dOFAL1OVXzo32k2PddSinndYgRrLzOceWuj2dYcs=; b=i0RtoG+PSXbN9Za76E2bDvJPpJJwKHNJ6HzpRr1RQlQzxpCTk1u0Sq3li4FFJ27BJd oTjOJI3VbzabmW01LFSgOAE6N1atjkVO+1c4gp5EhccKQdBEYKIw3SuBKVKQl5OzWyR4 kbrngkHxQppM04YRWWpLmz5Xx7VRw1GTt2X30gUCj48uhlhipIeFNtFDWYf82xhZLcLi QsWUaKdKfi0vzi1mRzy8PtZG8VCX7g1XA98NBUxHKo+M5QvTcFxOdIZlpeqVWq7RLWyg fwUy7G6p0SwYG3ULNdswIf2uU2iAdTOLjcxDeGxaua/rYitOOhedWQb8OJCjo+MLCPjX OW5g== X-Gm-Message-State: APjAAAUPHhN4GAzF5uv4gkfJhg//pMnMU7ccMyGIb5wBfTIXwC+Kv3yo F5RXhpuoHXH1qHqRNbCiHHBVrTeW X-Received: by 2002:a63:3281:: with SMTP id y123mr105781516pgy.72.1564482380523; Tue, 30 Jul 2019 03:26:20 -0700 (PDT) Received: from bharath12345-Inspiron-5559 ([103.110.42.31]) by smtp.gmail.com with ESMTPSA id k6sm74255606pfi.12.2019.07.30.03.26.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Jul 2019 03:26:20 -0700 (PDT) Date: Tue, 30 Jul 2019 15:56:13 +0530 From: Bharath Vedartham To: Christoph Hellwig Cc: sivanich@sgi.com, arnd@arndb.de, ira.weiny@intel.com, jhubbard@nvidia.com, jglisse@redhat.com, gregkh@linuxfoundation.org, william.kucharski@oracle.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH v3 1/1] sgi-gru: Remove *pte_lookup functions Message-ID: <20190730102613.GB6825@bharath12345-Inspiron-5559> References: <1564170120-11882-1-git-send-email-linux.bhar@gmail.com> <1564170120-11882-2-git-send-email-linux.bhar@gmail.com> <20190729064842.GA3853@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190729064842.GA3853@lst.de> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 29, 2019 at 08:48:42AM +0200, Christoph Hellwig wrote: > 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. You are right there! I ll send another version correcting this. Thank you Bharath