aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ecryptfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ecryptfs')
-rw-r--r--fs/ecryptfs/inode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ecryptfs/inode.c b/fs/ecryptfs/inode.c
index 4d4cc6a90cd5..94ab3c06317a 100644
--- a/fs/ecryptfs/inode.c
+++ b/fs/ecryptfs/inode.c
@@ -527,6 +527,8 @@ static int ecryptfs_rmdir(struct inode *dir, struct dentry *dentry)
527 dget(lower_dentry); 527 dget(lower_dentry);
528 rc = vfs_rmdir(lower_dir_dentry->d_inode, lower_dentry); 528 rc = vfs_rmdir(lower_dir_dentry->d_inode, lower_dentry);
529 dput(lower_dentry); 529 dput(lower_dentry);
530 if (!rc && dentry->d_inode)
531 clear_nlink(dentry->d_inode);
530 fsstack_copy_attr_times(dir, lower_dir_dentry->d_inode); 532 fsstack_copy_attr_times(dir, lower_dir_dentry->d_inode);
531 dir->i_nlink = lower_dir_dentry->d_inode->i_nlink; 533 dir->i_nlink = lower_dir_dentry->d_inode->i_nlink;
532 unlock_dir(lower_dir_dentry); 534 unlock_dir(lower_dir_dentry);