integrity: reduce storage size for ima_status and evm_status
authorDmitry Kasatkin <dmitry.kasatkin@intel.com>
Fri, 21 Sep 2012 14:00:43 +0000 (17:00 +0300)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Wed, 16 Jan 2013 22:50:01 +0000 (17:50 -0500)
This patch reduces size of the iint structure by 8 bytes.
It saves about 15% of iint cache memory.

Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@intel.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
security/integrity/integrity.h

index e9db763a875e80f8fc4bd528974922d7e98ae97e..0a298def50365006e4b56464e918114cb35f4e90 100644 (file)
@@ -50,8 +50,8 @@ struct integrity_iint_cache {
        u64 version;            /* track inode changes */
        unsigned short flags;
        struct evm_ima_xattr_data ima_xattr;
-       enum integrity_status ima_status;
-       enum integrity_status evm_status;
+       enum integrity_status ima_status:4;
+       enum integrity_status evm_status:4;
 };
 
 /* rbtree tree calls to lookup, insert, delete