[Ecryptfs-devel] [PATCH] eCryptfs: Change the type of cipher_code from u16 to u8

2007-12-21 Thread Trevor Highland
eCryptfs: Change the type of cipher_code from u16 to u8. Only the lower byte of cipher_code is ever used, so it makes sense for its type to be u8. Signed-off-by: Trevor Highland <[EMAIL PROTECTED]> --- fs/ecryptfs/crypto.c |8 fs/ecryptfs/ecryptfs_kernel.h |4 ++-- fs/e

[Ecryptfs-devel] [PATCH] eCryptfs: Load each file decryption key only once

2007-12-21 Thread Trevor Highland
eCryptfs: Load each file decryption key only once There is no need to keep re-setting the same key for any given eCryptfs inode. This patch optimizes the use of the crypto API and helps performance a bit. Signed-off-by: Trevor Highland <[EMAIL PROTECTED]> --- fs/ecryptfs/crypto.c |9 +---