diff options
author | Steve French <sfrench@us.ibm.com> | 2006-01-12 17:47:08 -0500 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2006-01-12 17:47:08 -0500 |
commit | 94bc2be31a01a3055ec94176e595dfe208e92d3b (patch) | |
tree | ebfbe81c6718a6390bfa1b99c6d228237d818576 /fs/autofs | |
parent | c32a0b689cb9cc160cfcd19735bbf50bb70c6ef4 (diff) | |
parent | 58cba4650a7a414eabd2b40cc9d8e45fcdf192d9 (diff) |
Merge with /pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/autofs')
-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 |