mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
crypto: skcipher - Realign struct skcipher_walk to save 8 bytes
Reduce skcipher_walk's struct size by 8 bytes by realigning its members. pahole output before: /* size: 120, cachelines: 2, members: 13 */ /* sum members: 108, holes: 2, sum holes: 8 */ /* padding: 4 */ /* last cacheline: 56 bytes */ and after: /* size: 112, cachelines: 2, members: 13 */ /* padding: 4 */ /* last cacheline: 48 bytes */ No functional changes intended. Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
34f170a590
commit
66fecd9d94
1 changed files with 1 additions and 2 deletions
|
@ -67,8 +67,6 @@ struct skcipher_walk {
|
|||
struct scatter_walk in;
|
||||
};
|
||||
|
||||
unsigned int nbytes;
|
||||
|
||||
union {
|
||||
/* Virtual address of the destination. */
|
||||
struct {
|
||||
|
@ -81,6 +79,7 @@ struct skcipher_walk {
|
|||
struct scatter_walk out;
|
||||
};
|
||||
|
||||
unsigned int nbytes;
|
||||
unsigned int total;
|
||||
|
||||
u8 *page;
|
||||
|
|
Loading…
Add table
Reference in a new issue