Received: by 10.192.165.156 with SMTP id m28csp2078775imm; Thu, 12 Apr 2018 08:16:00 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/uV8HbrlcJvWyCl7B57ZRulrtPMgyICEouCoCadTGRlO/WUgJlc0PQ0z79WSIHgr2TbuMt X-Received: by 2002:a17:902:32a2:: with SMTP id z31-v6mr1514693plb.41.1523546160582; Thu, 12 Apr 2018 08:16:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523546160; cv=none; d=google.com; s=arc-20160816; b=MJgHZFYy3n8PJgsKV5/Uvybz18wxOl/J9VL3efPF+GQ5AyOksTFzvXGxXvAq0K6bga oN1KaZWIbnLmtgxiqaeKiUdvt6u5K1KhGvoioHc831YhYUJ9pzF9Ci1DGq/l6pZeVvKg bWddwusoBpOhah7S+rVLxSrc9D9a8yzkrpv8Kfvgixc7xcQeB4juKNuiswgeJFHyI6tW bP6EenmD22vVZ/jfPbXLkt95gz0dNNXPB4fcLxXCevgdFQp3q4t5IGIOL0sWZNMO3cYK u2IIymwk6gDWMkHWzYS86Pl4tOniauk7RbdzwPk1E3L6N10eIwFvD3B7bfeXy8/8MAWh sqhQ== 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=ijh5keA6Ny7Q/tS376JWeSe0v2LIsgYWbvmJkokmhqk=; b=GatREYR28dSagWvHToswAPAPLUkOMefGrzNYgJpCkoqzWOxS141cY+wNHOe4h+TAQU TGK4U0wvrNrQhWuyny55vpyDubMussRA9WyQPB76J/0sNwrLtg5Q5STjfcAMw/9FAwn7 LU9onmVjbqjy/ywyWgbxI7mP2Jb0PrXEXoNpcURQ1FmobS4tMeP/XysSJMqCxySuqcCq ShKI6BMTfzC6gteB9QP5IIzlOKpIAz+DOIrN6MmcKJFA1ldoqKpsp0+2NSmpi9DKLKRK 7xyBVq8ph+iLIgr4f3EUYbMEDG3J0ZMZ5cyHxWF+WnZA8NDIM7N53w3ly5lv/0ZPRQHw +big== 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 w71si2764742pfd.273.2018.04.12.08.15.22; Thu, 12 Apr 2018 08:16:00 -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 S1753961AbeDLPLH (ORCPT + 99 others); Thu, 12 Apr 2018 11:11:07 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:34617 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753695AbeDLPJH (ORCPT ); Thu, 12 Apr 2018 11:09:07 -0400 Received: by mail-wm0-f67.google.com with SMTP id w2so3552930wmw.1 for ; Thu, 12 Apr 2018 08:09:07 -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=ijh5keA6Ny7Q/tS376JWeSe0v2LIsgYWbvmJkokmhqk=; b=ov2cxBYJElJfUWzna2FylQzezqL9+bw98gaZSf+FWPmrtOPRYXAfVkUuxaTnHMZRFQ EscpjG7sH18N+Lo2pt9hNUNw90oNMndLD/gYAfCLvaIQw5SmatVyKfF/2YkOpAjEB18g cdxoNoE/a9JCu5alkpMR9QUjbQNm9Yv9ORmZa4/LLqiPmnAK+6u+SXP9kzF3gB6OLtMi bOnlhIMqYtJpHut30K819mMiv6LLL3Mu6az4nhtnnjTJcgFTvnD68bIEMrxtaPA4e92c u5/JhcG18VA7J4u/Bx18AEYNyjjPEkYT4ZM8l6rxBm17gO5Scn22APLMRkYOHXuYBImL NrcQ== X-Gm-Message-State: ALQs6tDFmDnTyiaHK/cd5oPXLrDbfjWvzM7diFKWheByFUk4oVkM/ukF /v5cY+xYP28UeYG68lVOIfhFnw== X-Received: by 10.28.74.88 with SMTP id x85mr1099742wma.85.1523545746547; Thu, 12 Apr 2018 08:09:06 -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.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 12 Apr 2018 08:09:06 -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 30/35] Revert "vfs: make argument of d_real_inode() const" Date: Thu, 12 Apr 2018 17:08:21 +0200 Message-Id: <20180412150826.20988-31-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 7b1742eb06ead6d02a6cf3c44587088e5392d1aa. No user of d_real_inode() remains, so it can be removed. Signed-off-by: Miklos Szeredi --- include/linux/dcache.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/linux/dcache.h b/include/linux/dcache.h index 8ca25ea3b9db..c2dea5e78f54 100644 --- a/include/linux/dcache.h +++ b/include/linux/dcache.h @@ -593,10 +593,9 @@ static inline struct dentry *d_real(struct dentry *dentry, * If dentry is on a union/overlay, then return the underlying, real inode. * Otherwise return d_inode(). */ -static inline struct inode *d_real_inode(const struct dentry *dentry) +static inline struct inode *d_real_inode(struct dentry *dentry) { - /* This usage of d_real() results in const dentry */ - return d_backing_inode(d_real((struct dentry *) dentry, NULL, 0)); + return d_backing_inode(d_real(dentry, NULL, 0)); } struct name_snapshot { -- 2.14.3