From: Al Viro Date: Wed, 24 Mar 2021 18:14:27 +0000 (-0400) Subject: autofs: should_expire() argument is guaranteed to be positive X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=eecf77e097d27d26fe289d172b2e98433a8989f4;p=linux.git autofs: should_expire() argument is guaranteed to be positive Signed-off-by: Al Viro --- diff --git a/fs/autofs/expire.c b/fs/autofs/expire.c index a1c7701007e7a..b3fefd6237c36 100644 --- a/fs/autofs/expire.c +++ b/fs/autofs/expire.c @@ -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 */