|
@@ -828,7 +828,6 @@ EXPORT_SYMBOL(shrink_dcache_sb);
|
|
static void shrink_dcache_for_umount_subtree(struct dentry *dentry)
|
|
static void shrink_dcache_for_umount_subtree(struct dentry *dentry)
|
|
{
|
|
{
|
|
struct dentry *parent;
|
|
struct dentry *parent;
|
|
- unsigned detached = 0;
|
|
|
|
|
|
|
|
BUG_ON(!IS_ROOT(dentry));
|
|
BUG_ON(!IS_ROOT(dentry));
|
|
|
|
|
|
@@ -892,8 +891,6 @@ static void shrink_dcache_for_umount_subtree(struct dentry *dentry)
|
|
spin_unlock(&parent->d_lock);
|
|
spin_unlock(&parent->d_lock);
|
|
}
|
|
}
|
|
|
|
|
|
- detached++;
|
|
|
|
-
|
|
|
|
inode = dentry->d_inode;
|
|
inode = dentry->d_inode;
|
|
if (inode) {
|
|
if (inode) {
|
|
dentry->d_inode = NULL;
|
|
dentry->d_inode = NULL;
|