From patchwork Thu Apr 12 15:08:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miklos Szeredi X-Patchwork-Id: 10338701 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A350E602D8 for ; Thu, 12 Apr 2018 15:10:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9851927F2B for ; Thu, 12 Apr 2018 15:10:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8A45F27FA9; Thu, 12 Apr 2018 15:10:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 151FE27FA3 for ; Thu, 12 Apr 2018 15:10:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753954AbeDLPKu (ORCPT ); Thu, 12 Apr 2018 11:10:50 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:54178 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753660AbeDLPJI (ORCPT ); Thu, 12 Apr 2018 11:09:08 -0400 Received: by mail-wm0-f65.google.com with SMTP id 66so12330884wmd.3 for ; Thu, 12 Apr 2018 08:09:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=3wECQBF3ZWhjxyL/LsxB+azWGFiOqq2UbLsmWtGMsv0=; b=eb8o5Q7Zc6AypJQziSMNmJk13fIeFxtJ4S8RmnvzsmID5f2eQLHk8WWdK15Szfe30t wJF2NYVNx16cNEVrGbZb0JmkzP3ii3DIji3KUtbjG4C+5HY8YpdwdLJ1vzV0JIgXYrPp A9r689zUGi1Lmqflu9DSP3G6UTNpF5rH643V84L+5Hfn2ripsagdcxCdeKguNC+PNg6q utltaVoV0lrtUeqHCDjsUE/OaHhA7g552bk5oXrTuoksq4fGl+0n3L4e3BkXan7IzKTk I+3CE5YmvGuGY+Zx7vlZK3D3UpN+VDZzRC6wkD6XaI0vCQyQjDVFQwrUC4I3JK3srQZV OgWg== X-Gm-Message-State: ALQs6tCBmvIx1V7THuonNNcgkhLTG8/nsCIu2z0Vx/TBz2kARi1fImot 4Ygro1KpggtfTj3JUQ7UQUOjRQ== X-Google-Smtp-Source: AIpwx49dRtJ0op6MzSVUdfrsyQVgGnRAsKwFshgdogn6ha2ruxjmZjqE8ppLOmWwAFC/RCO/7LlT1A== X-Received: by 10.28.197.205 with SMTP id v196mr1088115wmf.39.1523545747792; Thu, 12 Apr 2018 08:09:07 -0700 (PDT) Received: from veci.piliscsaba.redhat.com (catv-176-63-54-97.catv.broadband.hu. [176.63.54.97]) by smtp.gmail.com with ESMTPSA id p197sm2621783wme.43.2018.04.12.08.09.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 12 Apr 2018 08:09:07 -0700 (PDT) From: Miklos Szeredi To: linux-unionfs@vger.kernel.org Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 31/35] Revert "vfs: add d_real_inode() helper" Date: Thu, 12 Apr 2018 17:08:22 +0200 Message-Id: <20180412150826.20988-32-mszeredi@redhat.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180412150826.20988-1-mszeredi@redhat.com> References: <20180412150826.20988-1-mszeredi@redhat.com> Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This reverts commit a118084432d642eeccb961c7c8cc61525a941fcb. No user of d_real_inode() remains, so it can be removed. Signed-off-by: Miklos Szeredi --- include/linux/dcache.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/include/linux/dcache.h b/include/linux/dcache.h index c2dea5e78f54..129ef05759a9 100644 --- a/include/linux/dcache.h +++ b/include/linux/dcache.h @@ -586,18 +586,6 @@ static inline struct dentry *d_real(struct dentry *dentry, return dentry; } -/** - * d_real_inode - Return the real inode - * @dentry: The dentry to query - * - * If dentry is on a union/overlay, then return the underlying, real inode. - * Otherwise return d_inode(). - */ -static inline struct inode *d_real_inode(struct dentry *dentry) -{ - return d_backing_inode(d_real(dentry, NULL, 0)); -} - struct name_snapshot { const unsigned char *name; unsigned char inline_name[DNAME_INLINE_LEN];