Skip to contentSkip to conversation

acl: Realign struct posix_acl to save 8 bytes

PATCH RESEND Applied Thorsten Blum 2 participants 2 messages Oct 15, 2024 – Oct 17, 2024

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 acl: Realign struct posix_acl to save 8 bytes

Reduce posix_acl's struct size by 8 bytes by realigning its members.

---
 include/linux/posix_acl.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/posix_acl.h +1 -1
index 0e65b3d634d9..2d6a4badd306 100644
@@ -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[];
 };
 
Signature · 1 line
2.47.0
#1 lore raw
Quoted 3 lines · Thorsten Blum

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