From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796316979; b=5U3+vBmCWrI0K1anvFqOFuivJvjFlxwBBZ+v8vznYw2ROLptApbByWnp4qQWCg21Fu7T 6Bq/UM0y+EtWll/ZBltFNsDHqPJH3ycCAjs/PubD2TDZyfGn3i2yfEPeiHXbIu2M05Aht WuOrCjwx5G8Da3Cq8qRv4WP+C4xYzyyZ3+7F+n7xfni29O3DqfnPJQK6Bn6wookUkamI9 aJlqhwL0YEOa952aSb7Uk/vf3UgHmWAJDPZXKTcxMlUGqk+9xs5Jpv57Ue85GA/kEDcwZ LEaDmkrN3wURuozRDS6CkhXgCeJs/G0A36hH0WZP2LFojwg4987HrXZHUYUOzALmwMg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796316979; h=Received:DKIM-Signature:Date:Message-ID:From:To:Cc:Subject: In-Reply-To:References:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=m+GAJG1SJ63gYqeItvB6kyqQMvUslttJtT3c2dL9hq0=; b=2LliLrp9ytpZMYZAnmKrqkYyGc+qHvsEH6/AyQHrAfEghmBh27E5zseGpHmgLA5TGm0w 5ZSLJ4IW4zodWC6E2hG8FvDBrHzGoDduR0bJ7wzv2+DvvtIv9KV3HGhg6eprJhpJXKqLw vzMzldGmZPjbn9Wwq/K6BuDTEM+bD6AEbQKvIuQKoWCqSx7FwpT+vE9jeXGSqHW4DYP7q 0lA91ZcsazPCmjXu2qLpwWQzPprnXdvQZ7un2AOWzxHmVReTzAhda/oA1ggnXbbHB08Vb 5Oz4tAHU9A3K75Y9s1E8BhIVUOkAA0Arkl1cSzc4CuY0CHWPJGc2K4xdP4dKFB0EaKA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="BE/cuuR1"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3EFED606A322; Thu, 3 Dec 2026 16:56:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=BE/cuuR1 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A551F1F008A0; Thu, 3 Dec 2026 16:56:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796316978; bh=m+GAJG1SJ63gYqeItvB6kyqQMvUslttJtT3c2dL9hq0=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=BE/cuuR1br2N4apHpp1vE5rmkjbF8dinJky8Hn2khMAUjVSUGPj9Nl5zzaPfGJYH5 jV7RKrlTlcIyM3mMaCfBnEpini86K49q2X8IcpKVCF57jL/RkTHFhrBrfqG4vIX7l4 lh8PBFdTOHCHTaHf08J/ALkMJwtLf+PHJUS4IdLS6hHVThsA8QG6g4g4pHfDwwffZX 3HUEUKOdbGjygXZLwCU1qpdTc+NBmRh7D4I8iZ+QDfmFLpXFvA8Mtd6cGb3tlkwDEZ Fhb6SRU1PG5xZw+LOhf2K0bJcSgXeDHLK5AtZNcSqKLM1G9ZOaZ+Z9MgWFEa9siuod XSzXHgUBPVm6g== Date: Thu, 03 Dec 2026 06:56:17 -1000 Message-ID: <7479fc1c26c1ebd4e1e3934a475e7910@kernel.org> From: Tejun Heo To: Jori Koolstra Cc: Shakeel Butt , Christian Brauner , Greg Kroah-Hartman , Ian Kent , "T . J . Mercier" , Meta kernel team , linux-fsdevel@vger.kernel.org, driver-core@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/6] kernfs: update a directory's times without kernfs_iattr_rwsem In-Reply-To: <771874345.3709540.1796308167142@kpc.webmail.kpnmail.nl> References: <20261118220154.2965621-1-shakeel.butt@linux.dev> <20261118220154.2965621-6-shakeel.butt@linux.dev> <771874345.3709540.1796308167142@kpc.webmail.kpnmail.nl> X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello, Jori. On Thu, Dec 03, 2026 at 03:29:27PM +0100, Jori Koolstra wrote: > I know this is not a change in behavior, but what is the reason we start > to care about the a/c/mtime only after we have done a setattr. I understand > that kernfs wants to be very stingy on memory use, but why not leave it out > all together then? Is there anything that needs those times only when the > attrs are not default? I think it's historic. sysfs started out with a full inode for each node and then got whittled down to sysfs_dirent, now kernfs_node, which is a lot smaller. The separate iattrs allocation was a way to keep the behavior unchanged as much as possible. I don't know what the ramifications would be if we dropped the times and showed e.g. the current time. Probably not much and maybe we should experiment and find out, but these things can become subtle. If it isn't too much trouble, carrying the behavior forward might be less friction. Thanks. -- tejun