[RESEND PATCH] acl: Realign struct posix_acl to save 8 bytes

Thorsten Blum posted 1 patch 1 month, 1 week ago
include/linux/posix_acl.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[RESEND PATCH] acl: Realign struct posix_acl to save 8 bytes
Posted by Thorsten Blum 1 month, 1 week ago
Reduce posix_acl's struct size by 8 bytes by realigning its members.

Cc: Christian Brauner <brauner@kernel.org>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
 include/linux/posix_acl.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/posix_acl.h b/include/linux/posix_acl.h
index 0e65b3d634d9..2d6a4badd306 100644
--- a/include/linux/posix_acl.h
+++ b/include/linux/posix_acl.h
@@ -28,8 +28,8 @@ struct posix_acl_entry {
 
 struct posix_acl {
 	refcount_t		a_refcount;
-	struct rcu_head		a_rcu;
 	unsigned int		a_count;
+	struct rcu_head		a_rcu;
 	struct posix_acl_entry	a_entries[];
 };
 
-- 
2.47.0
Re: [RESEND PATCH] acl: Realign struct posix_acl to save 8 bytes
Posted by Christian Brauner 1 month, 1 week ago
On Tue, 15 Oct 2024 22:21:54 +0200, Thorsten Blum wrote:
> Reduce posix_acl's struct size by 8 bytes by realigning its members.
> 
> 

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] acl: Realign struct posix_acl to save 8 bytes
      https://git.kernel.org/vfs/vfs/c/8f0a7a2d7bc3