diff options
Diffstat (limited to 'fs/autofs4/waitq.c')
-rw-r--r-- | fs/autofs4/waitq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/autofs4/waitq.c b/fs/autofs4/waitq.c index 2ad05ab93db8..35b755e79c2d 100644 --- a/fs/autofs4/waitq.c +++ b/fs/autofs4/waitq.c | |||
@@ -322,7 +322,7 @@ static int validate_request(struct autofs_wait_queue **wait, | |||
322 | * continue on and create a new request. | 322 | * continue on and create a new request. |
323 | */ | 323 | */ |
324 | if (!IS_ROOT(dentry)) { | 324 | if (!IS_ROOT(dentry)) { |
325 | if (dentry->d_inode && d_unhashed(dentry)) { | 325 | if (d_really_is_positive(dentry) && d_unhashed(dentry)) { |
326 | struct dentry *parent = dentry->d_parent; | 326 | struct dentry *parent = dentry->d_parent; |
327 | new = d_lookup(parent, &dentry->d_name); | 327 | new = d_lookup(parent, &dentry->d_name); |
328 | if (new) | 328 | if (new) |
@@ -364,7 +364,7 @@ int autofs4_wait(struct autofs_sb_info *sbi, struct dentry *dentry, | |||
364 | if (pid == 0 || tgid == 0) | 364 | if (pid == 0 || tgid == 0) |
365 | return -ENOENT; | 365 | return -ENOENT; |
366 | 366 | ||
367 | if (!dentry->d_inode) { | 367 | if (d_really_is_negative(dentry)) { |
368 | /* | 368 | /* |
369 | * A wait for a negative dentry is invalid for certain | 369 | * A wait for a negative dentry is invalid for certain |
370 | * cases. A direct or offset mount "always" has its mount | 370 | * cases. A direct or offset mount "always" has its mount |