mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Richard Kennedy <richard@rsk.demon.co.uk>
To: sds@tycho.nsa.gov, jmorris@namei.org
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: [PATCH] selinux: reorder inode_security_struct to increase objs/slab on 64bit
Date: Sun, 18 May 2008 12:32:57 +0100	[thread overview]
Message-ID: <1211110377.3021.8.camel@castor.localdomain> (raw)

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 {



             reply	other threads:[~2008-05-18 11:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-18 11:32 Richard Kennedy [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1211110377.3021.8.camel@castor.localdomain \
    --to=richard@rsk.demon.co.uk \
    --cc=jmorris@namei.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sds@tycho.nsa.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®