[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 ++

[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

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

2007-12-18 Thread Trevor Highland
Change the type of cipher_code from u16 to u8. Signed-off-by: Trevor Highland <[EMAIL PROTECTED]> --- fs/ecryptfs/crypto.c |8 fs/ecryptfs/ecryptfs_kernel.h |4 ++-- fs/ecryptfs/keystore.c|8 3 files changed, 10 insertions(+), 10 deletions(-)

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

2007-12-18 Thread Trevor Highland
Load each file decryption key only once Signed-off-by: Trevor Highland <[EMAIL PROTECTED]> --- fs/ecryptfs/crypto.c |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/fs/ecryptfs/crypto.c b/fs/ecryptfs/crypto.c index 70f7aab..949fe44 100644 --- a/fs/ec

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

2007-12-17 Thread Trevor Highland
Only one byte of cipher_code is being written to the file header so it should be of type u8. Trevor 0001-Change-the-type-of-cipher_code-from-u16-to-u8.txt Description: application/mbox

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

2007-12-17 Thread Trevor Highland
There is no need to set the decryption key every time eCryptfs decrypts an extent. Trevor 0001-eCryptfs-Load-each-file-decryption-key-only-once.patch Description: application/mbox