]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] eCryptfs: Reduce stack usage in ecryptfs_generate_key_packet_set()
authorMichael Halcrow <mhalcrow@us.ibm.com>
Fri, 16 Feb 2007 09:28:40 +0000 (01:28 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 16 Feb 2007 16:14:01 +0000 (08:14 -0800)
commiteb95e7ffa50fa2921ef1845a5dcb2fe5b21e83a2
tree665bc814f571b88988b668e34cf45f2981853e57
parent29dbb3fc8020f025bc38b262ec494e19fd3eac02
[PATCH] eCryptfs: Reduce stack usage in ecryptfs_generate_key_packet_set()

eCryptfs is gobbling a lot of stack in ecryptfs_generate_key_packet_set()
because it allocates a temporary memory-hungry ecryptfs_key_record struct.
This patch introduces a new kmem_cache for that struct and converts
ecryptfs_generate_key_packet_set() to use it.

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/ecryptfs_kernel.h
fs/ecryptfs/keystore.c
fs/ecryptfs/main.c