Skip to content

Commit

Permalink
SELinux: reorder inode_security_struct to increase objs/slab on 64bit
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: James Morris <[email protected]>
  • Loading branch information
Richard Kennedy authored and James Morris committed Jul 14, 2008
1 parent f526971 commit fdeb051
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion security/selinux/include/objsec.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit fdeb051

Please sign in to comment.