Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp3120824lqo; Tue, 21 May 2024 07:29:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW8zGrvhNDw+g3K7o9+zapj2L4wcnXrBecYk0KDCBb6qJgjQrxwJ6yupkvpdeJGn4qQ1negBLGCdjBq7crYfAwIOoVOSWDgnW5aKpLOTQ== X-Google-Smtp-Source: AGHT+IG5kDKjOha8uQW14AOPt7lWJrXSEykvlC6xRsHIFFc8t6dEm5+cR3D82rLn198CqX/lPE9g X-Received: by 2002:a05:6870:2491:b0:24c:55d4:996a with SMTP id 586e51a60fabf-24c55d49a3fmr1775834fac.13.1716301748591; Tue, 21 May 2024 07:29:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716301748; cv=pass; d=google.com; s=arc-20160816; b=GHhmIXFa20ld5Y4+s170sk04zEprwK3JID90N8h1PB/DEESgFkH5Lv6iRwkx/FN/JT XY2Q1SgUnFQ3OOQrtJ1YcGGbrxKx7TK/IidP40g4d5yjO+6zOTuvmffkI3I4qDvwTa5x 5j2gfDQTXyTwmTGXkZT5kixG9C+JHv7EN2nhskqQFEWTzjUSXl//dwm3b6KBeK+nTSfO HA/KkxD5nJCAqjyDTQSztyHhIzjDeLs92j69NXcnJS3fEn4jOIoXQ/OeSV5ke4EYwKND 4mK53afErOsjKL4MDHHDvC+Ny3mOF6vvhNLUSMv9TMMldxQw6KSOXIQsp9UkXQvPrNll +NWw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=SyRizVRtppJ96xkkI+3zkGG4YorSXp0fKsRm+uhEVG8=; fh=2SxL3jLzjeBrcl9lceYPAzavIE69J/zji/IX+btzYLo=; b=AmGu00pI3k8cmnZyxoTVIzc14QvVzBI3Geg35r4lxaPXzEe3rtv2dE9r1i99M4u5FV ZJOIHSYMrz8ShBZMu7jUxE11rTDB4BXkuSCIcVW7RMtr9Aqfqdrscw2a6RUz07hnEIxU Ysio37KWtaaAC4DM6vyfMnfgQ5BTK0KfwTX8kZcfEFoyjcNYBXsUz85ZjhhHQYBf6wo4 FfC2x0ZvZ873AeqsAdqArAZLR0oOOfj4/5oUkzlESLvUCuN2omqr1mjcFzQo6r5vb/mA ev1anxxQGT8O8AVEHvpChRd61zJcP2yUvKo6jvu92XLA8eZCmaxQiiOf6fU6ujxnQdRm 8YSA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Y90ecRCg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-185095-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185095-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6a15f2fd96esi280565336d6.535.2024.05.21.07.29.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 07:29:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185095-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Y90ecRCg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-185095-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185095-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 4A3F51C23153 for ; Tue, 21 May 2024 14:27:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BA491130487; Tue, 21 May 2024 14:27:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Y90ecRCg" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 DABA212FF91; Tue, 21 May 2024 14:27:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716301667; cv=none; b=tJcy3d86sF876lf6t3YVPvCr7dzQ13UtNv2p6zplbgiGK8dl9n60dPZEMt3+sGRu1/zcbkcrs2/UWXkSwJSeiXtdosmV5tSktAlZnTRThGL4VMZYFVk1YbOIYnA9Q7kgFj1nKx/E5ghWomaC5zaD+/57yr7v4JsDc1ABvzi0BzU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716301667; c=relaxed/simple; bh=N0cM3yxnHhctCSdjxbIjzQRvpL3SVaCTMfYfSYckKMA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=nOX0V3PuTMHSf9vL2WFdNdNXho1eHN7KJZp3fIUeF1k0srtU2o8faNuqeTtyQWIXGOqe0O86wWaE2WF6IkHVkCEmtvp4IFh2hywf191G2joV78dsUwpj6foJvicogEyfakY1gdyOCF372NaI/uBGvN4RI4VcNFuKl9h/KzMHjcs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Y90ecRCg; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9287CC2BD11; Tue, 21 May 2024 14:27:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716301667; bh=N0cM3yxnHhctCSdjxbIjzQRvpL3SVaCTMfYfSYckKMA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Y90ecRCg3gZjCzCB3pUZ/OESTWKCiQ2XZ2dZ5hC7U+Z6nyhFbCg7qStWUjaC5HH/4 EOytmejLfW1WpSGaV74JHScIuN2h9Mi5dCBa+1pFssdOGZJjwPN8nOKH9iwPavOULs EQ06xY10pvhxDAsCkaBoJvjFYNKoQ2A9OyahmTxspSm4pzjTb5MZHyTwinrW3Za3ui pZ2C9Eha9+eX4hbkaFYgGGLERnzgAxosmKEuSP2ZSjaDJi/Bh2kch2g3XibU9xWkr2 rvGKZvpDFfHAEz5+YnJ7RTFDQjjU8a6WG3z3ERjJwuGWSVLIGaqphGMalG/uZBJvFc /FQUmp1ZmT35w== From: Christian Brauner To: Jeff Layton Cc: Christian Brauner , Jan Kara , Linus Torvalds , linux-fsdevel@vger.kernel.org, Amir Goldstein , linux-kernel@vger.kernel.org, Alexander Viro Subject: Re: [PATCH] fs: switch timespec64 fields in inode to discrete integers Date: Tue, 21 May 2024 16:27:10 +0200 Message-ID: <20240521-unwiederholbar-stelzen-84e3769c4349@brauner> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240517-amtime-v1-1-7b804ca4be8f@kernel.org> References: <20240517-amtime-v1-1-7b804ca4be8f@kernel.org> 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="utf-8" X-Developer-Signature: v=1; a=openpgp-sha256; l=1458; i=brauner@kernel.org; h=from:subject:message-id; bh=N0cM3yxnHhctCSdjxbIjzQRvpL3SVaCTMfYfSYckKMA=; b=owGbwMvMwCU28Zj0gdSKO4sYT6slMaT5rI/e/OZx3abalri8R2mNOyrnL9csmDb7VHXY9Yl2f zTee1Zv7yhlYRDjYpAVU2RxaDcJl1vOU7HZKFMDZg4rE8gQBi5OAZjIxtuMDJ0+VsZnFyc7csvZ 3xHni/Zp/5BzL/mgrm55rKBDcFbcZYb/mee1BUK2G/bZyv6MUbJv3/H1x4TlD7b1lZ376/jzm4A KPwA= X-Developer-Key: i=brauner@kernel.org; a=openpgp; fpr=4880B8C9BD0E5106FC070F4F7B3C391EFEA93624 Content-Transfer-Encoding: 8bit On Fri, 17 May 2024 20:08:40 -0400, Jeff Layton wrote: > Adjacent struct timespec64's pack poorly. Switch them to discrete > integer fields for the seconds and nanoseconds. This shaves 8 bytes off > struct inode with a garden-variety Fedora Kconfig on x86_64, but that > also moves the i_lock into the previous cacheline, away from the fields > it protects. > > To remedy that, move i_generation above the i_lock, which moves the new > 4-byte hole to just after the i_fsnotify_mask in my setup. Amir has > plans to use that to expand the i_fsnotify_mask, so add a comment to > that effect as well. > > [...] Let's see what the performance bot thing has to say... --- Applied to the vfs.misc branch of the vfs/vfs.git tree. Patches in the vfs.misc branch should appear in linux-next soon. Please report any outstanding bugs that were missed during review in a new review to the original patch series allowing us to drop it. It's encouraged to provide Acked-bys and Reviewed-bys even though the patch has now been applied. If possible patch trailers will be updated. Note that commit hashes shown below are subject to change due to rebase, trailer updates or similar. If in doubt, please check the listed branch. tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git branch: vfs.misc [1/1] fs: switch timespec64 fields in inode to discrete integers https://git.kernel.org/vfs/vfs/c/ad401d976810