Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1352820rdh; Fri, 24 Nov 2023 10:21:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IFIYFaLbHowkmX5hRgdxgdcJacw38fpfgW+OjCp/8jdOjOXroL7mE2nskYShyFhdsQ9J3Yn X-Received: by 2002:a05:6e02:1a82:b0:35c:2c10:da6a with SMTP id k2-20020a056e021a8200b0035c2c10da6amr4190770ilv.27.1700850117019; Fri, 24 Nov 2023 10:21:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700850116; cv=none; d=google.com; s=arc-20160816; b=tfDE7uqVm+/nCXUT+NE4OAJdOD2UgzLxPeIW7j7hMbWJDj8wDXRczmUCi+Yvm5NXWT bgxGpUjDM6PTa1wUFxH6Ui0np5XBVlijLNp6rPVk7PiUbgIrKpQ8cNrFKuGvVrc9CKXF d9umRAoSHaZ+w+lTvrry7Ofj+p4F40M6l3ku/CNwAed21tYXqn14IDvxpiHHvWhBmfiJ RzUD6dK11Sx/uq6gLNmDJ938sPc53bO2++UJjJO2oWbIAeX7k/AeRjaSMi96XP6gWNBz JzOOotNPfOPwn2y60+ee6MlW9buvhL4f7tJnnr+TA1IrZEfQuuY3ZoZdqCnFZnJFmlRn 7kXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=bnFjemGG/8+Q+bMrL9c3IGKLpEaIgBd22FVZzfxkBmw=; fh=ymVE7h6ccQWANnKZOZNpVDZkXSyrtoMwqEBSjmPjdzQ=; b=glg8fBHiWhG2o16W7pH7YQ4zoRMkKZF77kWqOgAJpvfgaeEVy/o2H0l8whAk/jiCyK XmqD0oCb6WVSrWL+cQu2s/qwP8N25UZMKr7gdTbe1T5q0ZUnTC+7/leG5Zi1gGJr6crn 5NjVlUrmnpZULgMF1YMt/nblPKEzR7WG4y4SPd2p6rt47fW5Tk28fctN6bDP5RyjaeuC JAU/geHgqRvAzYUisicZdjkOs3l00MPLdMF0CEFbs0PQAwPau4BzPtq7/IVX3SeKC9D0 tCQnkGFw8T3hi/8XrVUZhE5E26kHdznUkik49QKAChqT7Z9LFfZJtQWu+pGdCRLYi+0F bQDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=DTBogjrL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id u31-20020a63471f000000b005b3b8896199si3877958pga.591.2023.11.24.10.21.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 10:21:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=DTBogjrL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id 7AF4980B8DE5; Fri, 24 Nov 2023 10:21:54 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231462AbjKXSVg (ORCPT + 99 others); Fri, 24 Nov 2023 13:21:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229742AbjKXSVe (ORCPT ); Fri, 24 Nov 2023 13:21:34 -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 1DB5C1FFB; Fri, 24 Nov 2023 10:21:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=bnFjemGG/8+Q+bMrL9c3IGKLpEaIgBd22FVZzfxkBmw=; b=DTBogjrL33PG/f/pZc4RUVoUQ2 xaIKTpKFfXcdm8dGtodAaFMG8GmtS4OVftisdxckWdx3/V8LCZPi8mtIgxrs25O3Hg2hf/nwFLVsX aAulmIQZxr178U2OlrP/BKb57c3Xk+emUtmWmV28U7eNRacxbcmaAJ1yHfx6ZWCN3ydKkiQBFLbSi VVcH1VIqcWYl7sAIIqLF+jWtThLZ8vW1vjFJf9zqg3EiZdH2PKOw4oD3YtUq4/QQyL5EKdmmMQq38 abys6t3MgSghInemF42CSgKo9xblRff9FOQiHqLW5OSwBl5VTvczu5tl2NUCI21IujkfDnJHSmOx2 Ca6UrVLQ==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.96 #2 (Red Hat Linux)) id 1r6ao5-002fEc-2c; Fri, 24 Nov 2023 18:21:37 +0000 Date: Fri, 24 Nov 2023 18:21:37 +0000 From: Al Viro To: Martin Steigerwald Cc: Cedric Blancher , linux-fsdevel , Linux Kernel Mailing List Subject: Re: identifiers Message-ID: <20231124182137.GX38156@ZenIV> References: <20231124060553.GA575483@ZenIV> <20231124065759.GT38156@ZenIV> <20231124074856.GA581958@ZenIV> <10399078.nUPlyArG6x@lichtvoll.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <10399078.nUPlyArG6x@lichtvoll.de> 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 howler.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 (howler.vger.email [0.0.0.0]); Fri, 24 Nov 2023 10:21:54 -0800 (PST) [search bait removed from subject] On Fri, Nov 24, 2023 at 10:36:05AM +0100, Martin Steigerwald wrote: > Al Viro - 24.11.23, 08:48:57 CET: > > To elaborate a bit: what that function does (well, tries to do - it has > > serious limitations, which is why there is only one caller remaining and > > that one is used only when nothing else can access the filesystem > > anymore) is "kill given dentry, along with all its children, all their > > children, etc." > > I never got why in the context of computers anything is ever being killed. > It does not live to begin with. Simple - one deals with objects that have complex lifecycle, with very different possible behaviour at various stages. And about the only example of such that would be well-covered in natural languages is just that - both in adjectives for states and verbs for transitions between those. Note that the word "lifecycle" itself is rather commonly used outside of biological context. > You can stop something, remove it, delete it, destroy it, pause it, resume > it, overwrite it and you can do it really quickly or (almost) instantly or > slowly or recursively or some combination of those, but kill? You cannot > kill what does not live. Why? "Do something that changes the state of target into one in which the target gradually becomes incapable of normal activity until it goes completely inert and eventually disappears, with its parts recycled for unrelated objects" vs. "kill the target", with associated transitional state being refered to as "dying"? Your suggestions all refer to operation rather than state transition. > d_delete/destroy/remove_recursively() could be a suitable function name. > Pick one. Thanks, but no thanks. d_delete() already exists and refers to rather different operation; "destroy" in such contexts would be loaded with an existing technical meaning, and that would be actively confusing; "remove_recursively"? Guess what the better-behaving replacement (far too heavy-weight for the only remaining use) is called? "simple_recursive_removal". It does more than this one, though. > Similar it is with the term children or parent. There are no children in > computer software. Period. Well-asserted. Unfortunately, the statement is wrong - "parents" and "children" have specific meanings when applied to nodes of directed graphs. And there's a plenty of those dealt with by software. Directory tree, in particular.