Received: by 10.192.165.156 with SMTP id m28csp2081289imm; Thu, 12 Apr 2018 08:18:18 -0700 (PDT) X-Google-Smtp-Source: AIpwx483j2OtILUJUZwvtKP/YbXutiMqhvU0/ff/hwKdDtuHsrYrBvVyK/y1YgdKlei4+KRIKE3u X-Received: by 10.167.132.132 with SMTP id u4mr8107688pfn.17.1523546298577; Thu, 12 Apr 2018 08:18:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523546298; cv=none; d=google.com; s=arc-20160816; b=loZEU/YDt4ujy6Gliaxv64wufYusT/A2F02aPA/jaJxFV9Q5yD0WBOWPth1VIb/ysj OMrcykoxtmbsgk3VNWa18Z/UHP11EVHVMNBMmRjldxKv2OsdoF2MV9CZApwxm3g70Ful Pn3GLBh0OHwHKh1fThDjYx0tOiwTr4xmk1Yy0Z9wuYdRyHO2NiPyqsIdyo27itxQ1/j/ LP9LfA0/6T06Nsk8PfhVUskJ81I+ooLFFZ6+RYYDROlWcA+rK2BXNUDcoXxWXb+RcYe9 ptQ1pePyrSgkXFhwp4MXipfVVyjANbxKp+XlUQe3Mf7mARIk/vIQ0kcGxRzVStWd7HlY DmYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=3wECQBF3ZWhjxyL/LsxB+azWGFiOqq2UbLsmWtGMsv0=; b=e8v8yG/9h0knYv1AVu13PL+7Iq5zfP3Beuhn27Wrx0trQcNRalnZa9FKNYBskWu4t2 vf6ptdMdUf4OD4zYVEPJCzAG+3ZGk9TvmizlDombnwLSAXrIoTz3mR2OX8bvAcsGPFhS JrLLE1asl2BgEWz4MyJ3t9UT9qn8rg4JIjVVMiAfVREvWaQcvajezocWlIDvA0ZP+wOz QYCjfrOTGCKqO8UF1NZB9ZvAlViEt2enxLVNYGMlZOQsVyeKB3OzHcyHsgu3Das47x01 uNj7VbZQ8pYFiIh7gKkDuc6/MeeKNYOds0UKwdE1SKQrGcbbOERGDSfnfkZ5fjVwZiQ9 RTZg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bb10-v6si3432196plb.472.2018.04.12.08.17.41; Thu, 12 Apr 2018 08:18:18 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753949AbeDLPKu (ORCPT + 99 others); Thu, 12 Apr 2018 11:10:50 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:51448 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753714AbeDLPJI (ORCPT ); Thu, 12 Apr 2018 11:09:08 -0400 Received: by mail-wm0-f67.google.com with SMTP id u189so12316301wmd.1 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=DMF6JKyZc3RcAMfbKzcJ5fw5J9cVIFTd8B+5uaNTyBBVz/e/3zsVyiHhnRH4J1dEnk 5VR0f44JjJuSbCtYP9V2HVHqqFpljm7Ih9RJQa+kSIlCPfWbRm2YUzb50PK9Iax3vbjZ o/GQj8oedc8/Zy/hWyRwZqy0d6FG9N1aBQXttwrhvOOcrtDVJMeZ2x//FdXc5f/Qaqvf iFcDPfytYjId/CLlsVrcjv02H+b3qLD2BOiiW2wv62MSnjFL2uMxrmJj+DmaOu9cNuUt tCQNvhXvV6pMfxHV2NU6jqPGTyAU5ySKkHjq1voU5bbdHBK74sEogACr8C6VeY3a2Tpr 6Tlw== X-Gm-Message-State: ALQs6tCHvusr1wRUz/cJvbZIu4RAxqCVKPKRr1M6Nv6sFVg21KNarjjY Mcg659Qb7139WgIgDgaIwk9paw== 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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]; -- 2.14.3