ext4 crypto: shrink size of the ext4_crypto_ctx structure
authorTheodore Ts'o <tytso@mit.edu>
Sun, 31 May 2015 17:31:34 +0000 (13:31 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 31 May 2015 17:31:34 +0000 (13:31 -0400)
commit614def7013574ffcd54019b6df40ac1c0df754af
tree50549389b403fac7179bc6f93ecb178091ad4c31
parent1aaa6e8b24114757a836ae0e62d2096deb76f274
ext4 crypto: shrink size of the ext4_crypto_ctx structure

Some fields are only used when the crypto_ctx is being used on the
read path, some are only used on the write path, and some are only
used when the structure is on free list.  Optimize memory use by using
a union.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/crypto.c
fs/ext4/ext4_crypto.h
fs/ext4/page-io.c
fs/ext4/readpage.c