linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] xfs: reorder xfs_inode structure elements to remove unneeded padding.
@ 2024-06-18 11:35 Junchao Sun
  2024-06-18 11:35 ` [PATCH 2/2] vfs: reorder struct file " Junchao Sun
  2024-06-18 16:23 ` [PATCH 1/2] xfs: reorder xfs_inode " Darrick J. Wong
  0 siblings, 2 replies; 7+ messages in thread
From: Junchao Sun @ 2024-06-18 11:35 UTC (permalink / raw)
  To: linux-fsdevel, linux-xfs
  Cc: viro, brauner, jack, chandan.babu, djwong, Junchao Sun

By reordering the elements in the xfs_inode structure, we can
reduce the padding needed on an x86_64 system by 8 bytes.

Signed-off-by: Junchao Sun <sunjunchao2870@gmail.com>
---
 fs/xfs/xfs_inode.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/xfs/xfs_inode.h b/fs/xfs/xfs_inode.h
index 292b90b5f2ac..3239ae4e33d2 100644
--- a/fs/xfs/xfs_inode.h
+++ b/fs/xfs/xfs_inode.h
@@ -40,8 +40,8 @@ typedef struct xfs_inode {
 	/* Transaction and locking information. */
 	struct xfs_inode_log_item *i_itemp;	/* logging information */
 	struct rw_semaphore	i_lock;		/* inode lock */
-	atomic_t		i_pincount;	/* inode pin count */
 	struct llist_node	i_gclist;	/* deferred inactivation list */
+	atomic_t		i_pincount;	/* inode pin count */
 
 	/*
 	 * Bitsets of inode metadata that have been checked and/or are sick.
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-06-19 10:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-18 11:35 [PATCH 1/2] xfs: reorder xfs_inode structure elements to remove unneeded padding Junchao Sun
2024-06-18 11:35 ` [PATCH 2/2] vfs: reorder struct file " Junchao Sun
2024-06-18 14:52   ` Christian Brauner
2024-06-18 16:23 ` [PATCH 1/2] xfs: reorder xfs_inode " Darrick J. Wong
2024-06-18 16:40   ` JunChao Sun
2024-06-18 16:51     ` Matthew Wilcox
2024-06-19 10:05       ` JunChao Sun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).