Skip to content

Commit

Permalink
integrity: reduce storage size for ima_status and evm_status
Browse files Browse the repository at this point in the history
This patch reduces size of the iint structure by 8 bytes.
It saves about 15% of iint cache memory.

Signed-off-by: Dmitry Kasatkin <[email protected]>
Signed-off-by: Mimi Zohar <[email protected]>
  • Loading branch information
Dmitry Kasatkin authored and Mimi Zohar committed Jan 16, 2013
1 parent 16cac49 commit ee86633
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions security/integrity/integrity.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ee86633

Please sign in to comment.