[Ecryptfs-devel] [PATCH 3/3] eCryptfs: Set inode key only once per crypto operation

2007-11-02 Thread Michael Halcrow
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] Signed-off-by: Michael Halcrow [EMAIL PROTECTED] --- fs/ecryptfs/crypto.c |7

[Ecryptfs-devel] [PATCH 1/3] eCryptfs: Track header bytes rather than extents

2007-11-02 Thread Michael Halcrow
Remove internal references to header extents; just keep track of header bytes instead. Headers can easily span multiple pages with the recent persistent file changes. Signed-off-by: Michael Halcrow [EMAIL PROTECTED] --- fs/ecryptfs/crypto.c | 98

[Ecryptfs-devel] [PATCH] eCryptfs: Release mutex on hash error path

2007-11-02 Thread Michael Halcrow
On Mon, Oct 29, 2007 at 03:10:09PM +0900, Kazuki Ohta wrote: When IS_ERR(desc.tfm) is true, unlocking crypt_stat-cs_hash_tfm_mutex is forgotten. Thanks for reporting this, Kazuki. --- Release the crypt_stat hash mutex on allocation error. Check for error conditions when doing crypto hash