projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64b2f34
)
autofs: should_expire() argument is guaranteed to be positive
author
Al Viro
<viro@zeniv.linux.org.uk>
Wed, 24 Mar 2021 18:14:27 +0000
(14:14 -0400)
committer
Al 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
patch
|
blob
|
history
diff --git
a/fs/autofs/expire.c
b/fs/autofs/expire.c
index a1c7701007e7a79f730c09edfb8c8e9f5a44137e..b3fefd6237c3628483e6ead9e46ba132d7ae2689 100644
(file)
--- 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 */