Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp247302rdb; Sat, 30 Sep 2023 03:02:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG6S5rMg5SjxMSW8C2iukWPJxVisAYonkGu1EXkwmiE0Y5mgl3def0GKcfzDCItxQyVCDha X-Received: by 2002:a05:6870:c589:b0:1dc:cd20:1e8f with SMTP id ba9-20020a056870c58900b001dccd201e8fmr7386274oab.19.1696068143078; Sat, 30 Sep 2023 03:02:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696068143; cv=none; d=google.com; s=arc-20160816; b=IXNPB9IGorSjjyV4E30+IUqnU3262KhNudER7zoMmEHWpIY25HNW6DFlswuJ2RqURR TrPS3jSdVeXNxMhF8PxJXtaXo8vG2KYpAiJw1cTQnIxNJ7te0nEKK1e+DXIQhj+bEQ7b wRApIU2xoNjfrcUXV512pTpskFk8aM42d3H8lA8BomhDnA3qp1Z4dMQs7VC8675FZLgT ld3VMLabPRRO/9Fr8/ruggcpxjIhGh41pugRaSYXdnflwRaHZXd5GON/3EiIeiz0i+K6 BdlsC1q2mFW6oaLqAFb186owpMbi/h6O3yzpts8TlzoX6y4/7Z/ZQIEtDsTBpliLnFYD 7uYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=rfnTfQu22tuidv9d3nXXTKmbxSkfqoFQYQEuh21EROo=; fh=H+whdD+NSKCEgZ2stS10eUigXocqAnYP9qIuprVa5/8=; b=xxfzheBiKsub7RNo6HainaLa/aEXKDwhNsr8e9P3pa8OMeRa68l33pJb8fOm8KN9Jd LwmfOm8plf1zcx7Fp0AvXyeVJJ+aOCPYH714KdM4J6sMa5+egfUIcx/D/ORFlOwyodpO A7ESHpOmMv3kxP6SXdKtaTSLvORMCMteXE3xcgXpnsV6o9HZRtkT5LSVAlGt0hoTRyu+ +S6apYxjieeVsVBtMSmjKgM17hJ9OHLp2n1iy2G4wX4CHEk2o9p7+HWdS8nWLwVGo2VT uQecra4+vbK67+h5g6Sz//l3Lx2VHBeRRCJr7AY5hco4E7bC+vI62rKVE5VU8lMRo9UK 8Psg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shopee.com header.s=shopee.com header.b=bzxkc9jM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=shopee.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id t64-20020a638143000000b0056f7592d736si3303073pgd.34.2023.09.30.03.02.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Sep 2023 03:02:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@shopee.com header.s=shopee.com header.b=bzxkc9jM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=shopee.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 4171680ADF1E; Sat, 30 Sep 2023 03:02:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233964AbjI3KCU (ORCPT + 99 others); Sat, 30 Sep 2023 06:02:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229532AbjI3KCT (ORCPT ); Sat, 30 Sep 2023 06:02:19 -0400 Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56B32DD for ; Sat, 30 Sep 2023 03:02:17 -0700 (PDT) Received: by mail-io1-xd33.google.com with SMTP id ca18e2360f4ac-7a26fd82847so54163239f.3 for ; Sat, 30 Sep 2023 03:02:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shopee.com; s=shopee.com; t=1696068136; x=1696672936; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=rfnTfQu22tuidv9d3nXXTKmbxSkfqoFQYQEuh21EROo=; b=bzxkc9jMA56dO4Ys1bqkvRoZmWcUjFIv05vdsSIniW/6YXLiVZQL2zqqld6aJ91EDz ngOZD/7DCaBPDval6XseQ3hEv9WwIvCJs8Ea+50w2+KWXy15/CkznhpNNEVEvA3NyM1O lFZ7T+ekTJ+pG14GgDsx9j9n8dVEl2j4qJptuTDJecffdS9Nn7k3EkYpHLMjWxkKkg0s xRD/eSMuA42m+mY1Pv2TKEgcCWnVcdsrPR/0JMUa7S2oXcpIOZyMsp3+gEha7OngjP7V yAiPgBS5V5K8TOL44Hg5ckpv8fxLTp8hTgZrYz4eiL3Lw2P+/9zLPfk8B935D5a0HqMa YOlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696068136; x=1696672936; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=rfnTfQu22tuidv9d3nXXTKmbxSkfqoFQYQEuh21EROo=; b=RbCyr70p6+TfQL5MQJJ72NwEwZ7XJPqOjrlU985SUylE5y8kwSDR/2O+Jo0OMOeePu 2VcTds//t99AOLO8naUt1CkLwiU5IudqN+M28L4C79AGMtsIiZ4VfJO515sm+ve2FQDu K1TbTY8HojwIxMKpdFbGAAvTCaxZkK57CqsyUqJswHZZfQWacPqUPRWn96TOK2zCukKp CRRezarJycNrAbyM/Z0dDAu9OLEKYGs4qWJv7n3buNctqEq/yxusdjGaUE2uMCDyRPKM PJTu12ZN6MpYcp5ytzMg/R3zPABxK3FRpRLhO9j6WJI17BvaEfkPDYkJhKsXeuPfNkes zpZQ== X-Gm-Message-State: AOJu0Yzlf+9hYRvE8Tga4ChO57Yx5iU7uCnPmaD82tB5yLq5m//5k+zP Bp6wP0S0hoKZZZM/8EhzbH52BQZegV9WJqS+Yuf4riV9 X-Received: by 2002:a05:6e02:216d:b0:351:5716:2bdb with SMTP id s13-20020a056e02216d00b0035157162bdbmr8609691ilv.5.1696068136703; Sat, 30 Sep 2023 03:02:16 -0700 (PDT) Received: from ubuntu-hf2.default.svc.cluster.local ([101.127.248.173]) by smtp.gmail.com with ESMTPSA id t21-20020a63b255000000b00578e9751b88sm15864937pgo.1.2023.09.30.03.02.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Sep 2023 03:02:16 -0700 (PDT) From: Haifeng Xu To: akpm@linux-foundation.org Cc: viro@zeniv.linux.org.uk, mszeredi@redhat.com, bigeasy@linutronix.de, mcgrof@kernel.org, xiubli@redhat.com, linux-kernel@vger.kernel.org, Haifeng Xu Subject: [PATCH RESEND 1/2] vfs: remove unused d_backing_dentry() function Date: Sat, 30 Sep 2023 10:01:55 +0000 Message-Id: <20230930100156.24014-1-haifeng.xu@shopee.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sat, 30 Sep 2023 03:02:22 -0700 (PDT) d_backing_dentry() isn't used by anyone, so remove it. Signed-off-by: Haifeng Xu Reviewed-by: Al Viro --- include/linux/dcache.h | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/include/linux/dcache.h b/include/linux/dcache.h index 6b351e009f59..13023c7211d6 100644 --- a/include/linux/dcache.h +++ b/include/linux/dcache.h @@ -545,21 +545,6 @@ static inline struct inode *d_backing_inode(const struct dentry *upper) return inode; } -/** - * d_backing_dentry - Get upper or lower dentry we should be using - * @upper: The upper layer - * - * This is the helper that should be used to get the dentry of the inode that - * will be used if this dentry were opened as a file. It may be the upper - * dentry or it may be a lower dentry pinned by the upper. - * - * Normal filesystems should not use this to access their own dentries. - */ -static inline struct dentry *d_backing_dentry(struct dentry *upper) -{ - return upper; -} - /** * d_real - Return the real dentry * @dentry: the dentry to query -- 2.25.1