autofs: should_expire() argument is guaranteed to be positive
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 24 Mar 2021 18:14:27 +0000 (14:14 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 24 Mar 2021 18:14:27 +0000 (14:14 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/autofs/expire.c

index a1c7701007e7a79f730c09edfb8c8e9f5a44137e..b3fefd6237c3628483e6ead9e46ba132d7ae2689 100644 (file)
@@ -355,7 +355,7 @@ static struct dentry *should_expire(struct dentry *dentry,
                return NULL;
        }
 
-       if (d_really_is_positive(dentry) && d_is_symlink(dentry)) {
+       if (d_is_symlink(dentry)) {
                pr_debug("checking symlink %p %pd\n", dentry, dentry);
 
                /* Forced expire, user space handles busy mounts */