diff options
author | Tyler Hicks <tyhicks@linux.vnet.ibm.com> | 2011-04-12 12:23:09 -0400 |
---|---|---|
committer | Tyler Hicks <tyhicks@linux.vnet.ibm.com> | 2011-04-25 19:32:36 -0400 |
commit | dd55c89852481a0708c3fd4b48f3081f4280d9d3 (patch) | |
tree | 36e516d3802f5854a9e25610bdfd2382f497ef0d /fs/ecryptfs | |
parent | 35ffa948b2f7bdf79e488cd496232935d095087a (diff) |
eCryptfs: dput dentries returned from dget_parent
Call dput on the dentries previously returned by dget_parent() in
ecryptfs_rename(). This is needed for supported eCryptfs mounts on top
of the NFSv3 client.
Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
Diffstat (limited to 'fs/ecryptfs')
-rw-r--r-- | fs/ecryptfs/inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ecryptfs/inode.c b/fs/ecryptfs/inode.c index 9c3c2f5bc6a6..72d357649599 100644 --- a/fs/ecryptfs/inode.c +++ b/fs/ecryptfs/inode.c | |||
@@ -608,8 +608,8 @@ ecryptfs_rename(struct inode *old_dir, struct dentry *old_dentry, | |||
608 | fsstack_copy_attr_all(old_dir, lower_old_dir_dentry->d_inode); | 608 | fsstack_copy_attr_all(old_dir, lower_old_dir_dentry->d_inode); |
609 | out_lock: | 609 | out_lock: |
610 | unlock_rename(lower_old_dir_dentry, lower_new_dir_dentry); | 610 | unlock_rename(lower_old_dir_dentry, lower_new_dir_dentry); |
611 | dput(lower_new_dentry->d_parent); | 611 | dput(lower_new_dir_dentry); |
612 | dput(lower_old_dentry->d_parent); | 612 | dput(lower_old_dir_dentry); |
613 | dput(lower_new_dentry); | 613 | dput(lower_new_dentry); |
614 | dput(lower_old_dentry); | 614 | dput(lower_old_dentry); |
615 | return rc; | 615 | return rc; |