Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5F5AA1E1DEC for ; Fri, 13 Mar 2026 21:31:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773437471; cv=none; b=omLLMBYdAsWpKP9eNYiicfB7Cpo4XR16dUvTZEV9FfbBq5dlRGcJTIb0TjYSLYLrVGfXYZAbAAxXE3kW7AURjbKL7/SbUXTUmbdvhReu9YAqSbeWCsuP2zmaDri0oREysC1eEXsY84/Ex+w/tD6HBXd1mUnvcw/oIHrd3G2qtEo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773437471; c=relaxed/simple; bh=8ezd/L72i8/+r59oncngsSYn/8zj6MHMV3iiebGy0RE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=X9/w1dnVj6xQkv1FvZLkkwn3P+zo9FKc9D3/rOg+Srdpn/UyicMA4zhcRfv5mkEFwYuSkt2ntb+3duhUj2wmcXKgtJWWxf1XbcxwCxGnUhm5pAc4vHgN3SrLEzx5Mh2802b5hAgktDvEhZ5+qyUZlCsXr77G3zGN4BfAEkdu7B4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=zabbo.net; spf=pass smtp.mailfrom=zabbo.net; dkim=pass (1024-bit key) header.d=zabbo.net header.i=@zabbo.net header.b=Bbavjvns; arc=none smtp.client-ip=209.85.210.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=zabbo.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=zabbo.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=zabbo.net header.i=@zabbo.net header.b="Bbavjvns" Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-8298fad2063so1628642b3a.3 for ; Fri, 13 Mar 2026 14:31:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zabbo.net; s=google; t=1773437469; x=1774042269; darn=lists.linux.dev; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=kDtFoqSnNu372PtHeiV2Uv0rUqqsn2sUJKRpVwQpqN4=; b=Bbavjvnsw8HOpCNnu+xgsGllvNXwVWkGkf4ZNlKBm9m5+4KoDGENr+EpRlvLQF/h7Y m6uOPT9/Xo6Kc+1gh8sE8P396Q5XapQuRsDZrK/CVJVnqQCMjQvA2/V+cgXaAxfxv6+R bgSNm//HcEKkLq+VT3hxRg9RBzKY1aEAPxQcE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773437469; x=1774042269; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=kDtFoqSnNu372PtHeiV2Uv0rUqqsn2sUJKRpVwQpqN4=; b=rivOTmxLNh0zp9k7EfCvPw+JwVo1o1zlqpCiHuzwJbH5gbQmYm+/bxCz+CDwgA+Aer N/v4ooaweJJzitFMf99GtTpYgMC/7ZZu4dvBljuvu6TyLq0XUZqEc4ppxmAfk2SC8SoN wq4nYR1vJu4Kct6Wfb4gjQsu+SxvJqJtf8Hx3dDx+9+Ut29UpNHbRpB7VbuEEFvFcStI EMk8HAy5oJw0jh+Hmjhgweabmy6Z3Sulct9jJPX1RCo8Ry21ctg7+APqw0DLFr/Rz25+ J5lqg/eVlPJKoP2hETvpkKO9X7/WM4Uy0KNwPHVF8Ms/DolOfW6KGhXNkFgbz1s4UZZs vH+g== X-Gm-Message-State: AOJu0YzK4BHY+PiD8sUDe9hdwduh3ZeZRc1bDZlL0JLeBrL21I2jiCUX cLf4oUl7l9PdihMOK8tN0hvgFCU6OQtcQ94cLqHPKwyDrEusOCdv7Ahw0kgNxkx+Dvk= X-Gm-Gg: ATEYQzwYfTRiBW8q78BTblg1+Jx/C6TaWavzWGn51u8hXBAnbB1fIyjhPvGDhTcfwo6 NEVDSQndy9YNGQvsA2YTFZIZnU6C9fOiJA2hJb+cO3lU/3JxigwuQS6hCqzs04zvFwrcZ5HUqgD xjdnl2y+M1iIlgNT6ffHTGQLMBjEqjiMVBR5r3VBZOAEKD7jtiwn0ZGrFIa4nIgaEFr4Ta+9tZM jjpuYYZUk55ZR4m76xtR2+AS8ejSk6F6hq9xRz5DZHkZUIO/XO21MuYQWvCYkJ66XaqmQvnscrM 8MLh8QKro0vQsmfv8RFYGzwKrfwSUsvgUZXZgGnUnfcO4sExOT0vyCN89B3fnMraalR5FuYkA76 9GYh59+MLwOjTz50VKM2+4/WXuYjvGtVHLbULXlfoL4jBDCS7VsDsxogimoKi9BwiDK7q+2e+BQ rrcQLjRkItCg== X-Received: by 2002:a05:6a00:a86:b0:829:8942:2ca1 with SMTP id d2e1a72fcca58-82a198efabcmr4778372b3a.44.1773437469558; Fri, 13 Mar 2026 14:31:09 -0700 (PDT) Received: from localhost ([50.39.133.72]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-82a07341ed1sm6427787b3a.33.2026.03.13.14.31.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Mar 2026 14:31:09 -0700 (PDT) Date: Fri, 13 Mar 2026 14:31:08 -0700 From: Zach Brown To: Valerie Aurora Cc: rpdfs-devel@lists.linux.dev Subject: Re: [PATCH 2/2] rpdfs: Set the inode creation time Message-ID: <20260313213108.GA67440@localhost.localdomain> References: <20260310173140.128230-1-val@versity.com> <20260310173140.128230-3-val@versity.com> <20260311175917.GA4053706@localhost.localdomain> Precedence: bulk X-Mailing-List: rpdfs-devel@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Thu, Mar 12, 2026 at 12:04:21PM +0100, Valerie Aurora wrote: > On Wed, Mar 11, 2026 at 6:59 PM Zach Brown wrote: > > > > On Tue, Mar 10, 2026 at 06:31:40PM +0100, Valerie Aurora wrote: > > > + rinode = hnd->data; > > > + rinode->crtime_nsec = cpu_ts64_to_le64_ns(ts); > > > +} [...] > > So the way to do this is to have a local copy of the crtime in the > > rpdfs_inode_info. Copy it back and forth in copy_vfs_inode_to_rinode() > > and vice versa. > > The reason I didn't do this is that creation time is only set at inode > creation time and almost never read, so it seems like a waste of > memory to put it in the rpdfs_inode_info. It's only accessed through > getattr, so that needs to do its own separate block lookup anyway. I like the instinct but I think in this case the memory savings isn't worth the special case and additional code. VFS inodes are immense, I imagine we're down in the single digit percentages. (ish, yeah, say around 8/728) There's also some forward-looking context that might not be obvious and which is probably nudging my preference. While it takes a block lookup today to validate the cached inode contents, that's not necessarily always going to be the case. We're going to get cached vfs objects (dentries -> d_revalidate) where the validation frequency is so bonkers that we'll probably want to modify the cached object on invalidation rather than always doing block lookups. The revalidate test could be a local seqlock test, or something, rather than the global hash table lookup. > But if you prefer, we can keep creation time in rpdfs_inode_info. Let > me know what you want. Yes please! I like the consistency across this class of inode metadata. - z