diff options
Diffstat (limited to 'fs')
| -rw-r--r-- | fs/autofs4/root.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/autofs4/root.c b/fs/autofs4/root.c index 109a6c606d92..e8e5e63ac950 100644 --- a/fs/autofs4/root.c +++ b/fs/autofs4/root.c | |||
| @@ -177,8 +177,7 @@ static int try_to_fill_dentry(struct dentry *dentry, int flags) | |||
| 177 | } | 177 | } |
| 178 | /* Trigger mount for path component or follow link */ | 178 | /* Trigger mount for path component or follow link */ |
| 179 | } else if (ino->flags & AUTOFS_INF_PENDING || | 179 | } else if (ino->flags & AUTOFS_INF_PENDING || |
| 180 | autofs4_need_mount(flags) || | 180 | autofs4_need_mount(flags)) { |
| 181 | current->link_count) { | ||
| 182 | DPRINTK("waiting for mount name=%.*s", | 181 | DPRINTK("waiting for mount name=%.*s", |
| 183 | dentry->d_name.len, dentry->d_name.name); | 182 | dentry->d_name.len, dentry->d_name.name); |
| 184 | 183 | ||
| @@ -262,7 +261,7 @@ static void *autofs4_follow_link(struct dentry *dentry, struct nameidata *nd) | |||
| 262 | spin_unlock(&dcache_lock); | 261 | spin_unlock(&dcache_lock); |
| 263 | spin_unlock(&sbi->fs_lock); | 262 | spin_unlock(&sbi->fs_lock); |
| 264 | 263 | ||
| 265 | status = try_to_fill_dentry(dentry, 0); | 264 | status = try_to_fill_dentry(dentry, nd->flags); |
| 266 | if (status) | 265 | if (status) |
| 267 | goto out_error; | 266 | goto out_error; |
| 268 | 267 | ||
