From patchwork Thu Apr 12 15:08:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miklos Szeredi X-Patchwork-Id: 10338681 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 0125F60134 for ; Thu, 12 Apr 2018 15:09:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EAB8226D08 for ; Thu, 12 Apr 2018 15:09:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DFCE626E75; Thu, 12 Apr 2018 15:09:13 +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 CCDBE26D08 for ; Thu, 12 Apr 2018 15:09:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753755AbeDLPJJ (ORCPT ); Thu, 12 Apr 2018 11:09:09 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:36925 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753702AbeDLPJH (ORCPT ); Thu, 12 Apr 2018 11:09:07 -0400 Received: by mail-wm0-f68.google.com with SMTP id l16so6488628wmh.2 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=HG9Dh3iXh1bDzx+Ag0wiiQohdhZCuTKvR5otjGxgu1MLFHokWxhl/tCrGvkN12GLnH hTsbP/PD3ADe1t0TZd7X5Aiaq2/LURd6iE7GkdI9dZuHimfoWLfZD9pe2QELWEBltZ6W za0FkniaTEYJcRaB7sb3Tw8eqe8DS+6DxAIS+A7h00giIX97Sq7bFvEA/J4NDDZDQqwM tUQ+Hs9FmDAKBVybZ/2YCWqIPUlHXEWt2KWMs74TnU6LJMKuBkBsBJD98R3vPtyMRe/B r9ryT/aNeljovFdv+Ay14y9EMrk9d+HCUB3vAMcl+M4IPCOya4xa16nGvBTeHd+iDtCN Goxg== X-Gm-Message-State: ALQs6tCQ8WXhGFlHdcXBypjJXAzp46j/TSvRiTaoR88gLSRmMHT/S6GI +1cqDVbSasWfhyJSCqBQeO0ylQ== X-Google-Smtp-Source: AIpwx4/8QhEAvk4S2Uf4wiyvZDC6LvIZfRxhjgyeAHhoQ2EgJN9Bmxj3a8Y7nYJmJEBdC8V0RXDKtg== 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-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 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 {