Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1601481imu; Sat, 5 Jan 2019 02:59:39 -0800 (PST) X-Google-Smtp-Source: ALg8bN6lRc5k2AzF2qGnvhx7BRBL0syRKZApSMz+vyXXYRsCNlPmT8CHdjKYwtcRiaokV2g5tykg X-Received: by 2002:a63:4f5e:: with SMTP id p30mr4523811pgl.71.1546685979450; Sat, 05 Jan 2019 02:59:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546685979; cv=none; d=google.com; s=arc-20160816; b=KlcgggQd88C6ssHpibetSeJ4m3WuFQAZaWnnfV9Ok7Qpg5/fzfhssFd16wgNMjBiFD GfNbAll9gNo3ExySEnw+cmLfoOf4vEo7V5QUtNTHFliEjEX2cSc5ZJd4yelpqnZinlT4 IimREqxnTWSFcZqmXWj6gQeIxIlMzA5zuxo4i5IulLURv16bltK9u5ArnyQZp54foCZi lWt2P9BWY/crFB8PM4JuTebapuD9Ss+5WZrXI4ko1T+FNUpAkksYS+eCIrDxNela7vH+ r2SER4bZ+Ks0cAEvT1Hq7zlnU4/2yA+H+UmaYebyUVYelUK3eCswYrR3UUKzGQHhoqEa 00gg== 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=0JpiVsH1BCkuaG8RxMJDYvF0OfDV/ul7UkqCUuHXCQc=; b=g5TGJ2J11ytKrrSvV1TezSTxMsqRItzJmVCDOp2TIZDB3p9vkezi5921JiHI5GQT+E 8n1htrnbtBvPMUTm3/LLuyXgr38hJILiakjFM4djNQr4fmXiMvxei7tLm+W9lhuNebbi XRcMDVQkZ7pcoQNrhvu+FNc4EtkQ8idjJixMBkGM1jV6Iziymi6NrH+vPRmIQbzBYCAX ruTpOpDNhgFyK9U1MUxmNzIzGB4IuRnK1/RMlhFPddp6prOUlIpWVGbUfNcffV4Ayk17 wNm4d+pI/pOpBCNm+CZudOJQ/ERrhQ7rUq2dBPxZ+DyFlfMVYyFa+j66OCZgTCh7nVwG 2X3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=buj8fO2H; 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 j10si30116487pgt.155.2019.01.05.02.59.22; Sat, 05 Jan 2019 02:59:39 -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=buj8fO2H; 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 S1726246AbfAEK6M (ORCPT + 99 others); Sat, 5 Jan 2019 05:58:12 -0500 Received: from mail-it1-f196.google.com ([209.85.166.196]:33884 "EHLO mail-it1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726100AbfAEK6M (ORCPT ); Sat, 5 Jan 2019 05:58:12 -0500 Received: by mail-it1-f196.google.com with SMTP id x124so3281544itd.1; Sat, 05 Jan 2019 02:58:11 -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=0JpiVsH1BCkuaG8RxMJDYvF0OfDV/ul7UkqCUuHXCQc=; b=buj8fO2H41WvQobehCsceFfz1eEGBw7Pfa8rvEy0W6iVs7YfAeNocVzmxx6eZQ+p97 i33EpET+eFI26NcR1bTxjdAOSaVkXqiZG0iXgP6f8Brt2anI9WS33V082yxDa5oFaJPM UP3ADli5SuMvdOf3ZzymmzFfKS9jBXqmJZwiEtsfTpXl0ipE6jw1hmhD54YPwFBUFaE+ YeOL0Xt82C283vV21Au8iAr2GuR0yuW8rvDK1e1k2zA3UJRCzj4bLaoJn7hSs/+AfU6h fN2J5+lL4TMAsq3fZWoqTCEwHL3JeDOS7qjKpmoL5KtEbGQ5zzAYOzxVShnX4ZHr7ZE+ r0Dg== 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=0JpiVsH1BCkuaG8RxMJDYvF0OfDV/ul7UkqCUuHXCQc=; b=JxYsKG2x9a+oy/iEngZPLkUpUUhdoNie1/923H/4s5truRBCyp1R2pRovd8vCXLdWP J7rAyXC6oKh6Affst8uqpYGlVfoqG6w65rMGWcqh/KpkCagAepzEjcHPPj/44uSR4Yas HwrlI6AzQSOxKvsAPvG53qCPmAEjoW0QJA+BlBKF+C03MYqtRH/bVffJv4MJRhUr8mS4 ARgXfpaQFfEI0hImpvZlc7/dOYYzfv4lszWLwxuWTjLH5PnvP7E2OpARjR/h5P7FAfJD d5G5ex+R47FATOjTzC7hRN7/nNr9FuyDPbR3nnsTow3pjpaRdWg3aIKjfGELxWrOc9UM fD2g== X-Gm-Message-State: AJcUukdu0R5c5gQXAQ9qlyiqt9D5xPK5ZWqewM1IrwjNscGEe+BUfzMz tIKwh8ORkRbDCmBFO1bOcku+Wsqzr+Yo1mIUDMI= X-Received: by 2002:a24:1aca:: with SMTP id 193mr3086828iti.150.1546685890184; Sat, 05 Jan 2019 02:58:10 -0800 (PST) MIME-Version: 1.0 References: <20190104193029.GA15903@jordon-HP-15-Notebook-PC> In-Reply-To: <20190104193029.GA15903@jordon-HP-15-Notebook-PC> From: Ilya Dryomov Date: Sat, 5 Jan 2019 11:58:19 +0100 Message-ID: Subject: Re: [PATCH] fs/ceph/addr.c: Convert to use vmf_error() To: Souptick Joarder Cc: "Yan, Zheng" , Sage Weil , Ceph Development , linux-kernel@vger.kernel.org, willy@infradead.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 Fri, Jan 4, 2019 at 8:26 PM Souptick Joarder wrote: > > This code is converted to use vmf_error(). > > Signed-off-by: Souptick Joarder > --- > fs/ceph/addr.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c > index 8eade7a..fa2a85d 100644 > --- a/fs/ceph/addr.c > +++ b/fs/ceph/addr.c > @@ -1495,10 +1495,7 @@ static vm_fault_t ceph_filemap_fault(struct vm_fault *vmf) > if (err < 0 || off >= i_size_read(inode)) { > unlock_page(page); > put_page(page); > - if (err == -ENOMEM) > - ret = VM_FAULT_OOM; > - else > - ret = VM_FAULT_SIGBUS; > + ret = vmf_error(err); > goto out_inline; > } > if (err < PAGE_SIZE) Applied. Thanks, Ilya