mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] selinux: reorder inode_security_struct to increase objs/slab on 64bit
@ 2008-05-18 11:32 Richard Kennedy
  2008-05-18 23:18 ` James Morris
  2008-05-19 11:39 ` Stephen Smalley
  0 siblings, 2 replies; 5+ messages in thread
From: Richard Kennedy @ 2008-05-18 11:32 UTC (permalink / raw)
  To: sds, jmorris; +Cc: lkml

reorder inode_security_struct to remove padding on 64 bit builds
    
size reduced from 72 to 64 bytes increasing objects per slab to 64.
        
Signed-off-by: Richard Kennedy <richard@rsk.demon.co.uk>

---
This patch is against 2.6.26-r2 & boots successfully on my AMD64
desktop.


Richard



diff --git a/security/selinux/include/objsec.h b/security/selinux/include/objsec.h
index 032c235..5f0be19 100644
--- a/security/selinux/include/objsec.h
+++ b/security/selinux/include/objsec.h
@@ -43,8 +43,8 @@ struct inode_security_struct {
 	u32 sid;		/* SID of this object */
 	u16 sclass;		/* security class of this object */
 	unsigned char initialized;	/* initialization flag */
-	struct mutex lock;
 	unsigned char inherit;	/* inherit SID from parent entry */
+	struct mutex lock;
 };
 
 struct file_security_struct {



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

end of thread, other threads:[~2008-05-20  0:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-18 11:32 [PATCH] selinux: reorder inode_security_struct to increase objs/slab on 64bit Richard Kennedy
2008-05-18 23:18 ` James Morris
2008-05-19  8:21   ` Richard Kennedy
2008-05-19 11:39 ` Stephen Smalley
2008-05-20  0:01   ` James Morris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®