From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7B9A1C0044D for ; Mon, 16 Mar 2020 18:01:35 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 529A420409 for ; Mon, 16 Mar 2020 18:01:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 529A420409 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id F15F56B0003; Mon, 16 Mar 2020 14:01:34 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E9F306B0005; Mon, 16 Mar 2020 14:01:34 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D8D8B6B0007; Mon, 16 Mar 2020 14:01:34 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0220.hostedemail.com [216.40.44.220]) by kanga.kvack.org (Postfix) with ESMTP id BD5536B0003 for ; Mon, 16 Mar 2020 14:01:34 -0400 (EDT) Received: from smtpin11.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 6697145A0 for ; Mon, 16 Mar 2020 18:01:34 +0000 (UTC) X-FDA: 76601992908.11.sign79_64f98ada23b58 X-HE-Tag: sign79_64f98ada23b58 X-Filterd-Recvd-Size: 1684 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by imf16.hostedemail.com (Postfix) with ESMTP for ; Mon, 16 Mar 2020 18:01:33 +0000 (UTC) Received: by verein.lst.de (Postfix, from userid 2407) id 40A5668BFE; Mon, 16 Mar 2020 19:01:31 +0100 (CET) Date: Mon, 16 Mar 2020 19:01:31 +0100 From: Christoph Hellwig To: Jason Gunthorpe Cc: Christoph Hellwig , Jerome Glisse , Ralph Campbell , linux-mm@kvack.org Subject: Re: [PATCH 5/5] mm: merge hmm_vma_do_fault into into hmm_vma_walk_hole_ Message-ID: <20200316180131.GA24031@lst.de> References: <20200316135310.899364-1-hch@lst.de> <20200316135310.899364-6-hch@lst.de> <20200316164110.GA27591@ziepe.ca> <20200316165154.GA22701@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200316165154.GA22701@lst.de> User-Agent: Mutt/1.5.17 (2007-11-01) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Mon, Mar 16, 2020 at 05:51:54PM +0100, Christoph Hellwig wrote: > > I've also got a patch deleting these confusing HMM_PFN_ERRORs. They > > are not applied consistently and no caller would scan the output for > > ERROR on some failures. For instance the above doesn't set it on EPERM. > > > > So this can just be 'return -EFAULT' instead of 'goto out_error' > > > > I can fold that in if you agree: > > If you want to fix this up and the other ->pfns initialization feel > free. Otherwise I'd be happy to resend. While we are at it: hmm_vma_walk_hole_ in the subject should be hmm_vma_fault. I renamed the function on the last rebase as the old name was so horrible.