Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1021939imu; Fri, 4 Jan 2019 11:28:44 -0800 (PST) X-Google-Smtp-Source: ALg8bN6xO46nyXBIYDTpemWsaHyxAL71lHD91sT3nvAmvVqMf93q9k8D4NofxxjscpXZzNfOlb7e X-Received: by 2002:a63:314d:: with SMTP id x74mr2665701pgx.10.1546630124217; Fri, 04 Jan 2019 11:28:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546630124; cv=none; d=google.com; s=arc-20160816; b=Tnx63n7XBo86SmezvCn/sYWIrGGTPBAxmwxzMR7uPO6CSZUjT9eZK1N4/G/6hOYK8p TsIoaFe5+uqdcP+CMcaEsVoLj8JJhBzrAQkEKuCcGAuFWCKuEjIz2/xU0QqrpH/MRXd5 VmCLQD35ArNTVYPg+1WiwZgNB6hhbjOTzBHAVbp1GBc7PuywYCSzcAkfp55xR9c24KM8 NaBiSzzVuec3iQfOCtD49M5dscrDaE55Sbc1YMx9R47FcreKLxk1mEEWqiW/Iodr0UXp KAFNvCVUQVC0I/7IGT26YPD2CUP8QFIE1VJ3fUjLVdSnkBMQveFZD+cwcJoBYD9jGh71 1zcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=sS3q+BjVTpnZiKZNEESK2qULkkdiQIaE9iZqlAT6IQQ=; b=f//yzNdE9Dy0PuSuuyFqDNk9fHV7H4Z5/eGxaopVGe6DZ2fgQo7z6STz8m6O/RV6vC ZbN4ANl8jGri8uCOinhPf0irZfKr2TzE0KNESLTToOsRwZadPOslTV+qaBcGJuf8kInX ctM66xMgAZx/02Hlf1wcXobMGfIt9vawyqaTqAUfhj2tovDekO2BKriP8SZ3NZw9FnAw klyhYgwnSfDBqegjCteV0k29XdpyjBa853A9ANTpeF5/EyG+dgogYn/gWtu7IvXwrtef QJPbKT4fWqVekkgBHxi7o4qVautj3FlWifdNePTrWipw9Z3CN4IaE6gXc+4D27ePP5YC xIfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fKGO02dm; 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 b11si7192138pfo.240.2019.01.04.11.28.28; Fri, 04 Jan 2019 11:28:44 -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=fKGO02dm; 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 S1726085AbfADT0b (ORCPT + 99 others); Fri, 4 Jan 2019 14:26:31 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:40992 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725958AbfADT0a (ORCPT ); Fri, 4 Jan 2019 14:26:30 -0500 Received: by mail-pf1-f194.google.com with SMTP id b7so18724237pfi.8; Fri, 04 Jan 2019 11:26:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=sS3q+BjVTpnZiKZNEESK2qULkkdiQIaE9iZqlAT6IQQ=; b=fKGO02dm+QM78/mNU0jy0s/Yh+5HpZcR45uvZaHDn1XWm1eoqpzmy/36D2U+fItFv6 28v349gpUQN2ZBzTd9PAUoybJYUfg+ucNUxR+5nbuPsK9vPKXVMak6sKFREXgmWKNgw4 tYTTLevOdkGDYzEqdb/DbgETRXCvMgHLJJ73uzADBp9GzyI3GuiPY/zwm3cp/gWkp+pq G8VBpCEGfuP6B1WfyVv5OgfdfZT6MwhLn/r0vA9eNFLxX313kowNPYZSP0CreJwxePi6 JtU5TYqi9xxSvgWTx7woz7IgFR/Q9oXLHtBGqZVdoMHhv7/26oVDYtzyzeqjCnwDNjcd q1jA== 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:mime-version :content-disposition:user-agent; bh=sS3q+BjVTpnZiKZNEESK2qULkkdiQIaE9iZqlAT6IQQ=; b=VczXt/dFju14lNbTXwr0Qe8EfDCdzuS2U5FYFPXLsU1FGQp7FzOMajuF51yYng3TrI stSEBvdY1OQyRvi0AIS9tc1u+oaiLLcsywlOhJ8RNTj2zixvauLXTICLNFjwcQd6TiYb 4liqh67Jm4jf5gyVohr+3JmfVY6hu9spkl4VcXnjlJicvPx9XlXMW+KgeR7xDc9OvQyK ye2bnn0G0NGMXpzf4YbG136ZlwjuRd9MlTxi8MFLCT9SGoFIktIMXijqFUXU8hXAm8sD GxTXYSPGvO9Fpy8W7t2GbwLopcbljY6qbGNGHOKM3JAzOog7PNuAW3pNuuB6gRXNu/vT +owQ== X-Gm-Message-State: AJcUukcPW1h0k6cYVOaAMzM+/rXs/iCN3PpNTDqFfdaQRGN+FvbiRUHS /vA+Fn4CnsB3gz/YzD/HRAA= X-Received: by 2002:a63:78cd:: with SMTP id t196mr2699725pgc.62.1546629989972; Fri, 04 Jan 2019 11:26:29 -0800 (PST) Received: from jordon-HP-15-Notebook-PC ([49.207.48.173]) by smtp.gmail.com with ESMTPSA id o7sm79212112pfb.34.2019.01.04.11.26.28 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 04 Jan 2019 11:26:29 -0800 (PST) Date: Sat, 5 Jan 2019 01:00:29 +0530 From: Souptick Joarder To: zyan@redhat.com, sage@redhat.com, idryomov@gmail.com Cc: ceph-devel@vger.kernel.org, linux-kernel@vger.kernel.org, willy@infradead.org Subject: [PATCH] fs/ceph/addr.c: Convert to use vmf_error() Message-ID: <20190104193029.GA15903@jordon-HP-15-Notebook-PC> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) -- 1.9.1