Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7960915rdb; Thu, 4 Jan 2024 13:29:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IFk/DR+i3i6WV1yBgY8qCd84bjUT1S7KH/Ff9B4eR9qKXCF9Wq72yDGI1qg1pVXc5rFzkmt X-Received: by 2002:a05:6a00:1a8d:b0:6d9:c191:dc67 with SMTP id e13-20020a056a001a8d00b006d9c191dc67mr1456311pfv.28.1704403747920; Thu, 04 Jan 2024 13:29:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704403747; cv=none; d=google.com; s=arc-20160816; b=EeqMzoaKwSvG1+xNenRMb8WjjDO3yb8W/+bYXLh1+GjIUffZU6z18oy8WYzMHUv9RO TsFOf82WNsjNreZ9kS4Zww23D/ysEyiz2qMyb9X3I0ObDgJykwVIjU3KQaMn9pFV5nQ6 E3Zdz6aTAv55ElL63Qhs9rY3mR8kDi1Tpvn101aYIohfD+b6x0yxjLapIwawrmaoJgy2 Wbi4/WBXM8KJDLYxWYEYc6+i7mM3Rd5LK8T/9pzt8S360qwmIZA8ITsABG7scySkUPrq MLuJw/yiOH3e/6aIXVENfMJJnXXviyKqdFkMNNA0V6Ygcp4FXGJrxrzxC/6kHihUcvSJ 8CCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=VpiHI2Kr32mnTEJdDdX1NMESeAPZ+0Ox204pDtleoeY=; fh=IvsfrjGfsovF6h4YbT0VkjRdthum1J9KzzvE+rE9L3w=; b=gXm2rZGr9zAvjpuevxX2KtP/5YDxwPWQlUL7YxBpIGiKz9WPNBD9C83CFHXC7K7jC/ em2YERXQAHn2qYMxupjtEv9QPKZDws5FncnL2nYjXnZJOOtd1IVo1pp//YZdMMhHKT9n BdQnDkcE8D4HS7F1xUt4s+G7W9WNZ9iiBrRKz2BjOmcRd4pM6QNoLTiwSbZoZ5R5jNsd SMfOM9YO7b05FuFC5zPJYlA3OsSN0CmeIcnLL+q7RvAqeHLjhOZMlSNg0cvRFNhunxEv 6irwD1gLEDQqiUmGIUZYKa8SpjSi91a1lCDI+BxgJWyYiugV8h32JYwtgfnewcPg5Ld5 qBtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=p7YAaLYd; spf=pass (google.com: domain of linux-kernel+bounces-17238-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17238-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id e22-20020a62aa16000000b006d9d6e6cf73si164181pff.289.2024.01.04.13.29.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 13:29:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17238-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=p7YAaLYd; spf=pass (google.com: domain of linux-kernel+bounces-17238-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17238-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id C394DB21242 for ; Thu, 4 Jan 2024 21:29:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AFC0F2C843; Thu, 4 Jan 2024 21:28:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linux.org.uk header.i=@linux.org.uk header.b="p7YAaLYd" X-Original-To: linux-kernel@vger.kernel.org Received: from zeniv.linux.org.uk (zeniv.linux.org.uk [62.89.141.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BFA4F2C69C; Thu, 4 Jan 2024 21:28:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zeniv.linux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=ftp.linux.org.uk 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=VpiHI2Kr32mnTEJdDdX1NMESeAPZ+0Ox204pDtleoeY=; b=p7YAaLYdkiCGU8IWeBN7IrFyoa WrYiuZsm0J2ltUQTu5X/8H0IVewGPaA+hSm/ydSGxKfAVhVz4FXA+ee1cZc2Em0ixJ5CgQ3nl8PQy 5caZlCUwRLYTG1D1N66pCTNZrFbEj3lj29JrIRt8Nwp3J8SHDRa7tBjiEmqEQ2LEGXwVTCuYzcfvP NxYRYRJKnjqG6xLqnVHGfpiP3r/QlFttiBdKho0ZNkRRFPTnAiLK9rW+sD8puwdHtuUMUGQsJuaKb LlLZBeOYehxLVBdOmgK2vzAtHDs6iGp7GpVuTtiqx+/BwujaiUtLbT0vZAx8ZzMUtutHOZSu4+/FI s4xvYz4w==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.96 #2 (Red Hat Linux)) id 1rLVGf-002Mut-2j; Thu, 04 Jan 2024 21:28:45 +0000 Date: Thu, 4 Jan 2024 21:28:45 +0000 From: Al Viro To: Linus Torvalds Cc: Steven Rostedt , LKML , Linux Trace Kernel , Masami Hiramatsu , Mathieu Desnoyers , Christian Brauner , linux-fsdevel@vger.kernel.org, Greg Kroah-Hartman , Jonathan Corbet , linux-doc@vger.kernel.org Subject: Re: [PATCH] tracefs/eventfs: Use root and instance inodes as default ownership Message-ID: <20240104212845.GS1674809@ZenIV> References: <20240103203246.115732ec@gandalf.local.home> <20240104014837.GO1674809@ZenIV> <20240103212506.41432d12@gandalf.local.home> <20240104043945.GQ1674809@ZenIV> <20240104100544.593030e0@gandalf.local.home> <20240104182502.GR1674809@ZenIV> <20240104141517.0657b9d1@gandalf.local.home> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Al Viro On Thu, Jan 04, 2024 at 11:35:37AM -0800, Linus Torvalds wrote: > > "file description" - is how the file is accessed (position in the file and > > flags associated to how it was opened) > > That's a horrible term that shouldn't be used at all. Apparently some > people use it for what is our 'struct file *", also known as a "file > table entry". Avoid it. Worse, really. As far as I can reconstruct what happened it was something along the lines of "colloquial expression is 'opened file', but that is confusing - sounds like a property+noun, so it might be misparsed as a member of subset of files satisfying the property of 'being opened'; can't have that in a standard, let's come up with something else". Except that what they did come up with had been much worse, for obvious linguistic reasons. The *ONLY* uses for that expression I can think of are 1. When reading POSIX texts, watch out for that one - if you see them talking about a file descriptor in context where it really should be about an opened file, check the wording. If it really says "file descriptOR", it's probably a bug in standard or a codified bullshit practice. If it says "file descriptION" instead, replace with "opened file" and move on. 2. An outstanding example of the taste of that bunch. IO channel would be a saner variant, but it's far too late for that. The 3-way distinction between descriptor/opened file/file as collection of data needs to be explained in UNIX 101; it is userland-visible and it has to be understood. Unfortunately, it's often done in a way that leaves students seriously confused ;-/