]> git.baikalelectronics.ru Git - kernel.git/commit
eCryptfs: Cleanup inode initialization code
authorTyler Hicks <tyhicks@linux.vnet.ibm.com>
Tue, 24 May 2011 07:16:51 +0000 (02:16 -0500)
committerTyler Hicks <tyhicks@linux.vnet.ibm.com>
Sun, 29 May 2011 17:51:17 +0000 (12:51 -0500)
commit5e46a51cb527877c6545b10b0202d50680bfd1f4
tree3d9d551131686c9b0f4c6f7ed31ce4db1dbd0327
parentbfd2859deee3dddfbed4c8eea1e41954ddadeaf3
eCryptfs: Cleanup inode initialization code

The eCryptfs inode get, initialization, and dentry interposition code
has two separate paths. One is for when dentry interposition is needed
after doing things like a mkdir in the lower filesystem and the other
is needed after a lookup. Unlocking new inodes and doing a d_add() needs
to happen at different times, depending on which type of dentry
interposing is being done.

This patch cleans up the inode get and initialization code paths and
splits them up so that the locking and d_add() differences mentioned
above can be handled appropriately in a later patch.

Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
Tested-by: David <david@unsolicited.net>
fs/ecryptfs/ecryptfs_kernel.h
fs/ecryptfs/inode.c