Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3166197imu; Sun, 13 Jan 2019 20:30:31 -0800 (PST) X-Google-Smtp-Source: ALg8bN6mLTq0hWSp4nCrDpAicQJSvlJMHAQLbuVrwWiA2UINZDGqnzqmjC984t/HcR1EdKrbweix X-Received: by 2002:a63:7d06:: with SMTP id y6mr11302852pgc.171.1547440231066; Sun, 13 Jan 2019 20:30:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547440231; cv=none; d=google.com; s=arc-20160816; b=d4MijETg6THrK6Xs9fZY3wX2X6/um88zvqNX3JPWVoQ+gvKP/PPNumbxVA1i2KsfEZ ol6sl15GNYMhcabxOva3ulqB2mVTqs3ztoz5XDPwkqYq7QTJgFMcNggrGbA6MpuTwcxE lpKTu8Zoyh6Ct35fIPyZvdcb9Ca97IueK8uoI7TnrFVjIzmpR1vPdDLlfOZgtBXCeJaU UHcB4nvvIV2owXjfG1Zkj/i7ZzP9vZCharXXm8+2R/Jjb9TX2HF9Gdlu28LotBnKeMgX RaU0Cl2oISI4zjefSNDCZ66BeXL2mUzZcQB7GKBFAe0jJONNbx7G2GXTqBeIiCnRRFPM 1kgg== 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 :in-reply-to:references:mime-version:dkim-signature; bh=zP9c/TG+ypPoM7+YNBGf1hY0A2/Uxk27EqHLz6S0EsU=; b=MYNhfuzPgeHfxx+qhzTI+/7a8JuluT1FpdApHd1c6l/dWXxf4Oj+gnVyXoX2GKqyRO fQiaIbpUin6RyKLtHJ0O9FGggv6aazDmfUZve4gv3sunveh1KlR1P3T+jqF46Und9qn5 ZIEia4p5D0MApEpKvyxK4XWkTn4IFSc96xJZ1EddQDpSJk7l1dxuWJEaVDXRCd/8uwqI Fri85DFRLqpmJRyGR8AlYRUO67D0ZLYK31rFW6eCeu0pkG7cYx9lKXcVqKneDcHmqD/x aCV8rRB/ogKhkcKbAkwIUQRlJsuu9QyfnlFvd3bYmVzQHX0OXo8/dkJdosoSgWVxEKvO VE8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=e2aa6GNO; 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 u129si17430356pfu.117.2019.01.13.20.30.15; Sun, 13 Jan 2019 20:30:31 -0800 (PST) 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=e2aa6GNO; 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 S1726542AbfANE27 (ORCPT + 99 others); Sun, 13 Jan 2019 23:28:59 -0500 Received: from mail-lf1-f65.google.com ([209.85.167.65]:35172 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725837AbfANE27 (ORCPT ); Sun, 13 Jan 2019 23:28:59 -0500 Received: by mail-lf1-f65.google.com with SMTP id e26so14621338lfc.2; Sun, 13 Jan 2019 20:28:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zP9c/TG+ypPoM7+YNBGf1hY0A2/Uxk27EqHLz6S0EsU=; b=e2aa6GNOJUlgmYY7EBY9Im18WSiyS2rvAjx7AxZcFtDwUb2l69+AWL7xDfdHyEB5yq druuV+q6Ajm9IhlbhlIAFp5SPuTjCad35Ko/HVKgkPklhOa9FgdOoJl2OK4HaE3JlmBx +eGe04m2KbiZtibiRa5mcNNunf96p5kWbmlwnv8xXhH69JJDfC2prqJr3uAkoU7bKVGp cdRRW7SaqYjq14RnlERYqwFO4KAYSGuBgXXvi44TjMFtEIrJMDBxAGQZoOkVMabd6kUP ygj1Ii1DO2YJa1lS3S7FsTQe1Ku+RkKqKs+kw7H2MHq98HlTgOINm5WR39UBWwwfr6eE 3RMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zP9c/TG+ypPoM7+YNBGf1hY0A2/Uxk27EqHLz6S0EsU=; b=kCzsvdWp+fCigda3a2FsNmo4wGnaCD/K8o9iJcQmuq7g2hH9kDOAv7yLejvNAaxKnd yfV8SZ9RyVsInfCGFDCIc/fIDlVZPENb+1DcrppZHFLgYKwHfuJt/rn7GgoHzc+gBpK3 v9FWi/pv/u7Kr8JK8zll9XXbjL5WSDzDlvPUy2pn8mk9NwVoLQrinqdfxbHT3RhuGm26 Z15P5/tG6pS4r4lwUnNn/itw44WnoCLa9XZHTSz+kUwzkv5YVDyiTByQ/f93IT9QE+fN 4kd2Py0KMA2u483bjZ6F7AOYxV4LgRTVkVTnYSTRKS34ZA6WiajkMdqZ1oruPQSZKJbd IngA== X-Gm-Message-State: AJcUukdyBYqCCiS0Lkfhmn9Z5rkkBiwJz2poduPBfO35Wr3JCmdGE1N5 855gJWKsl2mirIgxqy/9rECFDr3Q+JtMYBZMY5ZRyA== X-Received: by 2002:a19:24c6:: with SMTP id k189mr12400179lfk.77.1547440137129; Sun, 13 Jan 2019 20:28:57 -0800 (PST) MIME-Version: 1.0 References: <20190104192410.GA11084@jordon-HP-15-Notebook-PC> In-Reply-To: <20190104192410.GA11084@jordon-HP-15-Notebook-PC> From: Souptick Joarder Date: Mon, 14 Jan 2019 09:58:45 +0530 Message-ID: Subject: Re: [PATCH] fs/dax: Convert to use vmf_error() To: Matthew Wilcox , zwisler@kernel.org, Jan Kara , Al Viro Cc: linux-fsdevel , linux-kernel@vger.kernel.org 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 Sat, Jan 5, 2019 at 12:50 AM Souptick Joarder wrote: > > This code is converted to use vmf_error(). > > Signed-off-by: Souptick Joarder Any comment on this patch ? > --- > fs/dax.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/fs/dax.c b/fs/dax.c > index 48132ec..ed39161 100644 > --- a/fs/dax.c > +++ b/fs/dax.c > @@ -1220,9 +1220,7 @@ static vm_fault_t dax_fault_return(int error) > { > if (error == 0) > return VM_FAULT_NOPAGE; > - if (error == -ENOMEM) > - return VM_FAULT_OOM; > - return VM_FAULT_SIGBUS; > + return vmf_error(error); > } > > /* > -- > 1.9.1 >