]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/autofs4/expire.c
autofs4 - fix expire check
[karo-tx-linux.git] / fs / autofs4 / expire.c
index 8c0e56d92938c49ad61fef0bfb3888f47429ebc9..842d00048a652f8cb9ebda7eeea40d62e9cb6720 100644 (file)
@@ -399,11 +399,6 @@ struct dentry *autofs4_expire_indirect(struct super_block *sb,
                        DPRINTK("checking mountpoint %p %.*s",
                                dentry, (int)dentry->d_name.len, dentry->d_name.name);
 
-                       /* Path walk currently on this dentry? */
-                       ino_count = atomic_read(&ino->count) + 2;
-                       if (dentry->d_count > ino_count)
-                               goto next;
-
                        /* Can we umount this guy */
                        if (autofs4_mount_busy(mnt, dentry))
                                goto next;