diff options
Diffstat (limited to 'fs/autofs/root.c')
-rw-r--r-- | fs/autofs/root.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/autofs/root.c b/fs/autofs/root.c index a1ab1c0ed215..870e2cf33016 100644 --- a/fs/autofs/root.c +++ b/fs/autofs/root.c | |||
@@ -10,6 +10,7 @@ | |||
10 | * | 10 | * |
11 | * ------------------------------------------------------------------------- */ | 11 | * ------------------------------------------------------------------------- */ |
12 | 12 | ||
13 | #include <linux/capability.h> | ||
13 | #include <linux/errno.h> | 14 | #include <linux/errno.h> |
14 | #include <linux/stat.h> | 15 | #include <linux/stat.h> |
15 | #include <linux/param.h> | 16 | #include <linux/param.h> |
@@ -229,9 +230,9 @@ static struct dentry *autofs_root_lookup(struct inode *dir, struct dentry *dentr | |||
229 | dentry->d_flags |= DCACHE_AUTOFS_PENDING; | 230 | dentry->d_flags |= DCACHE_AUTOFS_PENDING; |
230 | d_add(dentry, NULL); | 231 | d_add(dentry, NULL); |
231 | 232 | ||
232 | up(&dir->i_sem); | 233 | mutex_unlock(&dir->i_mutex); |
233 | autofs_revalidate(dentry, nd); | 234 | autofs_revalidate(dentry, nd); |
234 | down(&dir->i_sem); | 235 | mutex_lock(&dir->i_mutex); |
235 | 236 | ||
236 | /* | 237 | /* |
237 | * If we are still pending, check if we had to handle | 238 | * If we are still pending, check if we had to handle |