eCryptfs: set inode key only once per crypto operation
commit8e3a6f16ba5874b69968cd450334829262513fd1
authorTrevor Highland <trevor.highland@gmail.com>
Wed, 6 Feb 2008 09:38:33 +0000 (6 01:38 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 6 Feb 2008 18:41:12 +0000 (6 10:41 -0800)
treeae5f8535f87377c101eabda9c5508725f5f2b7bd
parentcc11beffdf80ca31dff21422fa2a5e54d25f1494
eCryptfs: set inode key only once per crypto operation

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 <trevor.highland@gmail.com>
Signed-off-by: Michael Halcrow <mhalcrow@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ecryptfs/crypto.c
fs/ecryptfs/ecryptfs_kernel.h