Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp847360rdh; Thu, 23 Nov 2023 22:13:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IHpZWXuI2Vvk0Ru2jf6TseC49lB8C5VR9MKCrCIX0ly6MtCLD0gvZsA9KPdetHUfK92Mrkk X-Received: by 2002:a17:90b:3e86:b0:285:93f0:b2a7 with SMTP id rj6-20020a17090b3e8600b0028593f0b2a7mr44956pjb.22.1700806415126; Thu, 23 Nov 2023 22:13:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700806415; cv=none; d=google.com; s=arc-20160816; b=m38slX+jpFRzxsTLzOEa8sKFYRpAAiCXxutFzmtbf3ofFdeeHtsf1zmWWUDbrKerCV z1yQs/lIiNu7vVHYbcKec1B1CReK32K+VavBFvv9VEdp2ANfVw4aPUwYkPRGvx3r3dEb tSCHr556wz11/l9WvWL8Btm9xc9KVENb7WpvyWadhFQzUxWJOaBmbcSr7EwARMwmvWDh 7Df5KVFHckTmYi2WDiiLcDZ+KaUCxQmkVqCFmRftH6lLXyxqv5k3paFeeUG7Xfarh4Hm QgyaQoWsDYPHRkLqSdovsknwiIEzMAcXwIUKVHp1toSWIpWqom8GexraJuXxJg0ZpviD F1YQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=E4j9PmHXo73pvef/B3umcswSWYxSbXtv+J2ZHSkA1+8=; fh=vDsv/0Rb6aybIi/Xas2DR+uQpFXMLtn4no3J1t38V0s=; b=APVKAq83ZNOM5K4cG/hy1Mc+ZUcXSBaFAKkyx9RBcYv9g15ZyW1e5XSiZ9W4m3zNvU tNq6NCtw8S55xToKEPJnssD9RyL5m8wlrSsgPwB1W6QFiVTQj3V8gltjpO+mkZyxYunc IYvkVau1fgShbT+dpwfBTQfF9BT+c6gc3zWUk4UR/ec39CRHKBtjz1AJjt8f50fQmXXF pH8VABwdD/ZozDKcoV2A+Lkb6eo9pWDRfN0ypXCjxbU7QOfkbJQHCp9NPVbbOt7TPaPL IPhpgMwygPXkNEtvVr9ufOv1Ndjlgc4ged3o7JY+R+RoKmIO6Z9jOEynIHCDauYwpTZ1 /OQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=X0V3xlMH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id z9-20020a170903018900b001cf5d073f9dsi1845131plg.82.2023.11.23.22.13.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 22:13:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=X0V3xlMH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 0EE5D80859B0; Thu, 23 Nov 2023 22:11:16 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235220AbjKXGKc (ORCPT + 99 others); Fri, 24 Nov 2023 01:10:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232709AbjKXGJn (ORCPT ); Fri, 24 Nov 2023 01:09:43 -0500 Received: from zeniv.linux.org.uk (zeniv.linux.org.uk [IPv6:2a03:a000:7:0:5054:ff:fe1c:15ff]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7566219B0; Thu, 23 Nov 2023 22:06:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description; bh=E4j9PmHXo73pvef/B3umcswSWYxSbXtv+J2ZHSkA1+8=; b=X0V3xlMH2WsbArt4e7YAAIkwkk Wz8i6Geaq1fYX0yXmzRtzCMiJh4fTcKZpWbMDM7QXu/Zk2CLT4jVcomxqV61r60fV3mS+FoWUnbuA NY8Jymq5CT2kFqEQSTAn+QXJ5x+aoSlAW1tuOWWv+X3o0OcskQm56PaXoBLsgzEGNgg3QmZRkWhQ7 IVXWHGVyQpDTqXMqCy12079OBddSHfUTdDn6yBJtPPwJSTtvZHm+pKPZhfnxsTRy3SN8T8rIMMOXu aBhpKJh/6roT6PHQB0hdvLtJ+CeeSUra4l4etFa1mXVhZqU4+cMeBHHtWKiOfCTwKOfaKExHR24s+ cbscZFAw==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.96 #2 (Red Hat Linux)) id 1r6PKv-002Q0x-3D; Fri, 24 Nov 2023 06:06:46 +0000 From: Al Viro To: linux-fsdevel@vger.kernel.org Cc: Linus Torvalds , Christian Brauner , linux-kernel@vger.kernel.org Subject: [PATCH 09/20] [software coproarchaeology] dentry.h: kill a mysterious comment Date: Fri, 24 Nov 2023 06:06:33 +0000 Message-Id: <20231124060644.576611-9-viro@zeniv.linux.org.uk> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231124060644.576611-1-viro@zeniv.linux.org.uk> References: <20231124060553.GA575483@ZenIV> <20231124060644.576611-1-viro@zeniv.linux.org.uk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Al Viro X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email 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 (groat.vger.email [0.0.0.0]); Thu, 23 Nov 2023 22:11:16 -0800 (PST) there's a strange comment in front of d_lookup() declaration: /* appendix may either be NULL or be used for transname suffixes */ Looks like nobody had been curious enough to track its history; it predates git, it predates bitkeeper and if you look through the pre-BK trees, you finally arrive at this in 2.1.44-for-davem: /* appendix may either be NULL or be used for transname suffixes */ -extern struct dentry * d_lookup(struct inode * dir, struct qstr * name, - struct qstr * appendix); +extern struct dentry * d_lookup(struct dentry * dir, struct qstr * name); In other words, it refers to the third argument d_lookup() used to have back then. It had been introduced in 2.1.43-pre, on June 12 1997, along with d_lookup(), only to be removed by July 4 1997, presumably when the Cthulhu-awful thing it used to be used for (look for CONFIG_TRANS_NAMES in 2.1.43-pre, and keep a heavy-duty barfbag ready) had been, er, noticed and recognized for what it had been. Despite the appendectomy, the comment remained. Some things really need to be put out of their misery... Signed-off-by: Al Viro --- include/linux/dcache.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/dcache.h b/include/linux/dcache.h index 9706bf1dc5de..a5e5e274eee0 100644 --- a/include/linux/dcache.h +++ b/include/linux/dcache.h @@ -270,7 +270,6 @@ extern void d_move(struct dentry *, struct dentry *); extern void d_exchange(struct dentry *, struct dentry *); extern struct dentry *d_ancestor(struct dentry *, struct dentry *); -/* appendix may either be NULL or be used for transname suffixes */ extern struct dentry *d_lookup(const struct dentry *, const struct qstr *); extern struct dentry *d_hash_and_lookup(struct dentry *, struct qstr *); -- 2.39.2