diff options
| author | Anton Altaparmakov <aia21@cantab.net> | 2006-01-19 11:39:33 -0500 |
|---|---|---|
| committer | Anton Altaparmakov <aia21@cantab.net> | 2006-01-19 11:39:33 -0500 |
| commit | 944d79559d154c12becde0dab327016cf438f46c (patch) | |
| tree | 50c101806f4d3b6585222dda060559eb4f3e005a /fs/autofs/root.c | |
| parent | d087e4bdd24ebe3ae3d0b265b6573ec901af4b4b (diff) | |
| parent | 0f36b018b2e314d45af86449f1a97facb1fbe300 (diff) | |
Merge branch 'master' of /usr/src/ntfs-2.6/
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 |
