]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
SELinux: reorder inode_security_struct to increase objs/slab on 64bit
authorRichard Kennedy <richard@rsk.demon.co.uk>
Sun, 18 May 2008 11:32:57 +0000 (12:32 +0100)
committerJames Morris <jmorris@namei.org>
Mon, 14 Jul 2008 05:01:37 +0000 (15:01 +1000)
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>
Signed-off-by: James Morris <jmorris@namei.org>
security/selinux/include/objsec.h

index 032c2357dad1d4cef675bfc05a5e2ebb567cee7e..5f0be19ca43a70da0bf658e5b2ce7cee7d621852 100644 (file)
@@ -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 {