Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp885869rdh; Thu, 23 Nov 2023 23:39:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IH1+pF0S8uv5LkcaxhsajOx/cxlE7iFknVQFCavMOUu/WummfTM4XsLhNBm6XQveEmt6U6j X-Received: by 2002:a05:6808:228b:b0:3b6:8608:72c7 with SMTP id bo11-20020a056808228b00b003b6860872c7mr2266609oib.50.1700811587536; Thu, 23 Nov 2023 23:39:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700811587; cv=none; d=google.com; s=arc-20160816; b=QGqAn8ihw5BsrfFbvd6Gej8XMrVvYPD57pFRLixtwD45vw6onneUr1kWabfBI1QSNJ 4++aGiJQU0QPcnmQMp0dHIXaUCVruCf4/gwheIKTWCiePImmBXexPuwWdLFWY2YzfphZ KPAHIqYA2e4nk5hT5nfd4GIboCZnaXFNf9zbb9pOlvDbE6fZg5s3+L5aDHW6L6HvAZ31 1yrkDv/4n8qjouM+T6Ne+IugGAAFCDk2zqtmRgl/zBtmtHlxIq7VS1d2seQ3o2X5okLA Ot5e9abPU5djlvgMycw9gBU+1w9oXPxRSy5wiFGCqJMzxI3gC/Od+WeSzPksRUzNggIO ajpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=RG/gsUHWvkT6+6+wGSY1vHckBzAuwdxp2sKBiJla/IM=; fh=7izyC3prPfizso4fsIOo9LEiUFQwEw1X5WDnRreofHw=; b=z2NsuHe7pkfjr9yirOM/t23tNlGljT/yB8v2smGv5jKYzcvwK6TcU4ECPp5sZ1f5pL qM5aXptCjmebxU17Y0tOcNII7hiE37eo+GJm7NiurZdrJM4BDFDE2ZjytmWfJ+QruRTv 9MhsQ5NKPT/AjXrjAkHZoTQVPXT31hIYJUpf7VFh8LrQhq9fw/Jg76zBLctSdTpj5QRQ czsNNELzsooTEfz8w3AgmXRbwJ84GXwDz2T5hxT0ZxZpoV8H/Az/DTBrumAqOIpzm90A weWKnY1dTg65/2VwJlUQ5AGbL+aIlfkpmROH1lxfL1m/6kqEhD01OlTh5Tcu8VfkgWqc q/sA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=WxLAdW1g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id e7-20020a63f547000000b005c200b11ba3si3010750pgk.888.2023.11.23.23.39.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 23:39:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=WxLAdW1g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 70F8180CA0A4; Thu, 23 Nov 2023 23:38:09 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229705AbjKXHh2 (ORCPT + 99 others); Fri, 24 Nov 2023 02:37:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbjKXHh0 (ORCPT ); Fri, 24 Nov 2023 02:37:26 -0500 Received: from mail-qv1-xf2f.google.com (mail-qv1-xf2f.google.com [IPv6:2607:f8b0:4864:20::f2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2277C1A8; Thu, 23 Nov 2023 23:37:29 -0800 (PST) Received: by mail-qv1-xf2f.google.com with SMTP id 6a1803df08f44-67a0d4e79c1so4874096d6.1; Thu, 23 Nov 2023 23:37:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700811448; x=1701416248; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=RG/gsUHWvkT6+6+wGSY1vHckBzAuwdxp2sKBiJla/IM=; b=WxLAdW1gLkJ5gdjZzt+Hi9zxWtia+g8x0Ofype9SJmgUHdG1nKmExQdhK41Y59lsG6 hHIiQMehBEiG0h1XEaNlSR09bPmzQpizuvEGJhe/yRDokQpFROu/mP3bDH8OCtqEvBAF 6vb7AKovYvrvvv/5v4npkvwekSpkYiywK2mfDYhcEt30ZhFj6pMZWDD1Il5bhYGe1Iix CsUtWuFAvSfLSPHxuqrLTfcrSOZDnukvmhQBFLaurE0AOu8hOHTlU+O3w3ARugkeX6yq NQGsydN2oYYSY7Ofm0Ex7Bf9JJEbUG4Gw1MqmnmA1DBT2L9PKbwINu4CH2mHtFzuNaLg Q9mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700811448; x=1701416248; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RG/gsUHWvkT6+6+wGSY1vHckBzAuwdxp2sKBiJla/IM=; b=pJWcI2YsLX29/sxSZLrwMH8PdJ9SyqiOVVIYeT/pVU8wE2rR9Ut4AJlQlzSoPff+z5 xOEC+1B9Wun/7nhQFXZN6tLmm/OgAAC960TYuqMU0f6cd1sZ4ZJ1SqJIsxXkxDcgRuLt TVzTdddUF3mS4vf9hHNlib+Y+fRbSDasw6dZmoRXSc2rmDWZld/55gWLn1cCwJNcNuFA y1MGeeunN1cHaKI1uqItZTxgMwnM1c024e9+EcqWQrTokm9d8qR7vZDQP0Rjh0VPfY33 pPxBPZroCQb5LbHrhI54ZJxj5LAHfyraqdctF3WzSt0Xfop2pHjlMH4Tz6HNwwsiG4wN 06Gg== X-Gm-Message-State: AOJu0YzxzJCk0Nh7yIkwCt0dmbqhUhULusRTBJSwhda8pjxuLqIKWe2m iiGRbz+U8bNo/O8vyXGDqEAOlqjUP3LZyXbX+WSUbS5m8OM= X-Received: by 2002:a0c:eecd:0:b0:679:e7dd:fa9 with SMTP id h13-20020a0ceecd000000b00679e7dd0fa9mr2164016qvs.10.1700811448213; Thu, 23 Nov 2023 23:37:28 -0800 (PST) MIME-Version: 1.0 References: <20231124060553.GA575483@ZenIV> <20231124060644.576611-1-viro@zeniv.linux.org.uk> <20231124060644.576611-9-viro@zeniv.linux.org.uk> In-Reply-To: <20231124060644.576611-9-viro@zeniv.linux.org.uk> From: Amir Goldstein Date: Fri, 24 Nov 2023 09:37:16 +0200 Message-ID: Subject: Re: [PATCH 09/20] [software coproarchaeology] dentry.h: kill a mysterious comment To: Al Viro Cc: linux-fsdevel@vger.kernel.org, Linus Torvalds , Christian Brauner , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 agentk.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 (agentk.vger.email [0.0.0.0]); Thu, 23 Nov 2023 23:38:09 -0800 (PST) On Fri, Nov 24, 2023 at 8:07=E2=80=AFAM Al Viro w= rote: > > 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 *); > Al, Since you like pre-git archeology... Mind digging up what this comment in fs.h is about: /* needed for stackable file system support */ extern loff_t default_llseek(struct file *file, loff_t offset, int whence); Or we can just remove it without digging up what the comment used to refer to ;) Thanks, Amir.