diff options
Diffstat (limited to 'fs')
| -rw-r--r-- | fs/autofs4/root.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/fs/autofs4/root.c b/fs/autofs4/root.c index e137acf0543d..2a771ec66956 100644 --- a/fs/autofs4/root.c +++ b/fs/autofs4/root.c | |||
| @@ -306,7 +306,14 @@ static int try_to_fill_dentry(struct dentry *dentry, | |||
| 306 | 306 | ||
| 307 | DPRINTK("expire done status=%d", status); | 307 | DPRINTK("expire done status=%d", status); |
| 308 | 308 | ||
| 309 | return 0; | 309 | /* |
| 310 | * If the directory still exists the mount request must | ||
| 311 | * continue otherwise it can't be followed at the right | ||
| 312 | * time during the walk. | ||
| 313 | */ | ||
| 314 | status = d_invalidate(dentry); | ||
| 315 | if (status != -EBUSY) | ||
| 316 | return 0; | ||
| 310 | } | 317 | } |
| 311 | 318 | ||
| 312 | DPRINTK("dentry=%p %.*s ino=%p", | 319 | DPRINTK("dentry=%p %.*s ino=%p", |
