aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ioctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r--fs/btrfs/ioctl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index e0893036da08..2bbbed506f5b 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -2174,6 +2174,12 @@ out_unlock:
2174 shrink_dcache_sb(root->fs_info->sb); 2174 shrink_dcache_sb(root->fs_info->sb);
2175 btrfs_invalidate_inodes(dest); 2175 btrfs_invalidate_inodes(dest);
2176 d_delete(dentry); 2176 d_delete(dentry);
2177
2178 /* the last ref */
2179 if (dest->cache_inode) {
2180 iput(dest->cache_inode);
2181 dest->cache_inode = NULL;
2182 }
2177 } 2183 }
2178out_dput: 2184out_dput:
2179 dput(dentry); 2185 dput(dentry);