diff options
author | Tyler Hicks <tyhicks@linux.vnet.ibm.com> | 2011-05-24 04:56:23 -0500 |
---|---|---|
committer | Tyler Hicks <tyhicks@linux.vnet.ibm.com> | 2011-05-29 14:24:24 -0500 |
commit | 778aeb42a708d2a57e491d2cbb5a1e74f61270b9 (patch) | |
tree | 6651d8a2356b9075e6978285cbcfa7aab16e9b7a /fs/ecryptfs/main.c | |
parent | 7a86617e553f47761b10f57de472d7262562b7de (diff) | |
download | kernel_samsung_aries-778aeb42a708d2a57e491d2cbb5a1e74f61270b9.zip kernel_samsung_aries-778aeb42a708d2a57e491d2cbb5a1e74f61270b9.tar.gz kernel_samsung_aries-778aeb42a708d2a57e491d2cbb5a1e74f61270b9.tar.bz2 |
eCryptfs: Cleanup and optimize ecryptfs_lookup_interpose()
ecryptfs_lookup_interpose() has turned into spaghetti code over the
years. This is an effort to clean it up.
- Shorten overly descriptive variable names such as ecryptfs_dentry
- Simplify gotos and error paths
- Create helper function for reading plaintext i_size from metadata
It also includes an optimization when reading i_size from the metadata.
A complete page-sized kmem_cache_alloc() was being done to read in 16
bytes of metadata. The buffer for that is now statically declared.
Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
Diffstat (limited to 'fs/ecryptfs/main.c')
0 files changed, 0 insertions, 0 deletions