From: Erez Zadok Date: Sun, 6 Dec 2009 23:05:30 +0000 (-0500) Subject: ecryptfs: remove unnecessary d_drop calls in ecryptfs_link X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c44a66d674688f1e1d0b2f6f56bd9c6a1b061cae;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ecryptfs: remove unnecessary d_drop calls in ecryptfs_link Unnecessary because it would unhash perfectly valid dentries, causing them to have to be re-looked up the next time they're needed, which presumably is right after. Signed-off-by: Aseem Rastogi Signed-off-by: Shrikar archak Signed-off-by: Erez Zadok Cc: Saumitra Bhanage Cc: Al Viro Signed-off-by: Tyler Hicks --- diff --git a/fs/ecryptfs/inode.c b/fs/ecryptfs/inode.c index 764dc777b268..e03415293625 100644 --- a/fs/ecryptfs/inode.c +++ b/fs/ecryptfs/inode.c @@ -463,9 +463,6 @@ out_lock: unlock_dir(lower_dir_dentry); dput(lower_new_dentry); dput(lower_old_dentry); - d_drop(lower_old_dentry); - d_drop(new_dentry); - d_drop(old_dentry); return rc; }