Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp131305imm; Tue, 10 Jul 2018 22:58:38 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcTZ9z7cnDcnj9a42CXdgyr+XMSIeUeyVEIjUI/iYSjcsJl6L+f4nC4Zv61TeyBIpJ7CTx/ X-Received: by 2002:a63:1811:: with SMTP id y17-v6mr19110030pgl.356.1531288718232; Tue, 10 Jul 2018 22:58:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531288718; cv=none; d=google.com; s=arc-20160816; b=SXOX0LmlUtNC2alwplPoTZ/Ic1Kra2VQYRPb1R77oMURj+jsxG24WV1DN+ihFvC+nA vHlKwlr+geuxtGJ9X4bXnEmFfjJU6IOvfqTnmWl8J/BPBSibuAYnaTIrc7rqGHIxDEEv k4pKRspVJZKa4lf9MrcUWtoV1gGIUVtphwZ3swflrpHEYgWkvzTwdCraXHCUDGBR98Oz 3ivil2EOv+jEU/IAggkoCBe0+bCpjGxrSrDDpBKJzEbbpEUY8hOi3FI+136aBYS2oFgO jD6XY8+u9zM1ads9tbMNFk3CxY83FH8P/g5DzdcpwBwTkG5QdRvYKTNXZbLXPSLNsEN2 00eQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=X0z2PPyVCo58eKp3nM1yoSVwUm3z0qdPdonZPgGrVXI=; b=wRrU01Mr/4ppalrCcznL7nNW2L2cQPVBwFC5h1LbPV73GUY+4djInLf/AqnaFunrFl KPosOhnrav+HNDkxCp2gVc9rhSHbAVMQZ0vkN8Nl1i9kat4o0xv9f44U0gWNcmY8BfPR 1+UHkAEJeYLkSl9fbjanKdOsZth/X1V0+K0MhoYP4RhDCcRyInfAw9rD+kbFBudvMzAU v2QiWjeD0k8u3bGUaOH81LNe10O8/6qbaflMJzWCLU8+pSSkI9ANGboiTjKvfRlLKAuN 8l6yFG4UwycVYCpbYCYbTlXSAZHxNvlodtbHiNZEkS8xARu+bJVy32pmyA71l5R/B3as vykw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HdoPQEEf; 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 x186-v6si18796793pgd.259.2018.07.10.22.58.23; Tue, 10 Jul 2018 22:58:38 -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=HdoPQEEf; 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 S1726463AbeGKF7G (ORCPT + 99 others); Wed, 11 Jul 2018 01:59:06 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:40153 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726255AbeGKF7G (ORCPT ); Wed, 11 Jul 2018 01:59:06 -0400 Received: by mail-lf0-f67.google.com with SMTP id y200-v6so20260761lfd.7 for ; Tue, 10 Jul 2018 22:56:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=X0z2PPyVCo58eKp3nM1yoSVwUm3z0qdPdonZPgGrVXI=; b=HdoPQEEfjS4fHBLxSIC5T9JbnSdEKixxNX9fZO5d9m6ym59Fk7aVdNFDu+qXg3x5qN hi81vBZV3s73GYUFA2QlPiGRlWwzje2UJNtcejCzXWNCOxTj4xnBKhOrP+3jOM3CwjEN 8UbRgAsRHjcK//QWwj6ImYSHFmspVzxtBBZScHB7tDbFDC2d88FvoQlfe09m5bd09X/I 0q/l9Dkn87tPew8cQePhnr0HpicJGVZyKsVjnxFxCnB6kjX82jWgE/XrbF5+rG8vhslS LIcfMAEMo7ZU1M/UtYQGspVXkqt+qx5EIayqqzQ5nX1uhlTzUHTQ6YZAkA8CoThREW1d tomg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=X0z2PPyVCo58eKp3nM1yoSVwUm3z0qdPdonZPgGrVXI=; b=SD5K+Rf0A3lb5adLFtgGkksmsjS1kD8SQKsd+VvbbmUSsgKQ7l6F91P6NAbE2BJcl9 QWE0YCEozkhR37EsBoPNq5U1RdWUV2l65kHDIbjsQGWL31/fskrwgWuAEqYU++sW/9RE SeqvH/daDyoM8vfpSsrwmHVafZgsPuqWwMXxpd6kaOXqz0hC8W0BXfMZI8ZNdIs2/0YI dNJrQmVGC8AO/sBf4Xuo13HGEHlmp3yVEwfEPVxeI19q/C3drAUKkkXfIgxey9veDCjy R1gDM+s3lU1MC0V9ifbdOuLOZXqf9JtLPnc2Z7+VlJNdAyCXTG/xd6OAm23k9FjCTfhA TKtA== X-Gm-Message-State: APt69E0ze3c9kG7xcqlMVTCHugEPSQ7WVMmswZht77Mw96BfN7sghNxL mPhqlUEe7Lems0gOUWcFjb1kH8C6/9w92yMs4SU= X-Received: by 2002:a19:8d07:: with SMTP id p7-v6mr5083036lfd.117.1531288589177; Tue, 10 Jul 2018 22:56:29 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a19:2b14:0:0:0:0:0 with HTTP; Tue, 10 Jul 2018 22:56:28 -0700 (PDT) In-Reply-To: References: <20180628184240.GA17183@jordon-HP-15-Notebook-PC> From: Souptick Joarder Date: Wed, 11 Jul 2018 11:26:28 +0530 Message-ID: Subject: Re: [PATCH] orangefs: Adding new return type vm_fault_t To: Mike Marshall Cc: Matthew Wilcox , Martin Brandenburg , devel@lists.orangefs.org, LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 11, 2018 at 1:13 AM, Mike Marshall wrote: > Hi... > > I applied this patch to 4.18.0-rc4. It applied cleanly and there's no xfstests > regressions. Sorry if I held you up any... > > You can add: Tested-By: Mike Marshall > Thanks Mike. Can we get this patch in queue for 4.19 merge window ? > -Mike > > On Fri, Jul 6, 2018 at 10:05 AM, Mike Marshall wrote: >> Souptick Joarder: Any comment for this patch? >> >> Thanks for sending it ... >> >> I have it in my stack, but I haven't studied it, or xfstested it yet, so >> no useful comments yet... >> >> -Mike >> >> >> >> On Fri, Jul 6, 2018 at 2:44 AM, Souptick Joarder wrote: >>> On Fri, Jun 29, 2018 at 12:12 AM, Souptick Joarder wrote: >>>> Use new return type vm_fault_t for fault handler. For now, >>>> this is just documenting that the function returns a VM_FAULT >>>> value rather than an errno. Once all instances are converted, >>>> vm_fault_t will become a distinct type. >>>> >>>> See the following >>>> commit 1c8f422059ae ("mm: change return type to vm_fault_t") >>>> >>>> Fixed checkpatch.pl warning. >>>> >>>> Signed-off-by: Souptick Joarder >>>> --- >>>> fs/orangefs/file.c | 19 ++++++++++--------- >>>> 1 file changed, 10 insertions(+), 9 deletions(-) >>>> >>>> diff --git a/fs/orangefs/file.c b/fs/orangefs/file.c >>>> index db0b521..a5a2fe7 100644 >>>> --- a/fs/orangefs/file.c >>>> +++ b/fs/orangefs/file.c >>>> @@ -528,18 +528,19 @@ static long orangefs_ioctl(struct file *file, unsigned int cmd, unsigned long ar >>>> return ret; >>>> } >>>> >>>> -static int orangefs_fault(struct vm_fault *vmf) >>>> +static vm_fault_t orangefs_fault(struct vm_fault *vmf) >>>> { >>>> struct file *file = vmf->vma->vm_file; >>>> - int rc; >>>> - rc = orangefs_inode_getattr(file->f_mapping->host, 0, 1, >>>> + int ret; >>>> + >>>> + ret = orangefs_inode_getattr(file->f_mapping->host, 0, 1, >>>> STATX_SIZE); >>>> - if (rc == -ESTALE) >>>> - rc = -EIO; >>>> - if (rc) { >>>> - gossip_err("%s: orangefs_inode_getattr failed, " >>>> - "rc:%d:.\n", __func__, rc); >>>> - return rc; >>>> + if (ret == -ESTALE) >>>> + ret = -EIO; >>>> + if (ret) { >>>> + gossip_err("%s: orangefs_inode_getattr failed, ret:%d:.\n", >>>> + __func__, ret); >>>> + return VM_FAULT_SIGBUS; >>>> } >>>> return filemap_fault(vmf); >>>> } >>>> -- >>>> 1.9.1 >>>> >>> >>> Any comment for this patch ?