diff options
Diffstat (limited to 'fs/autofs4/root.c')
-rw-r--r-- | fs/autofs4/root.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/fs/autofs4/root.c b/fs/autofs4/root.c index bfe3f2eb684d..651e4ef563b1 100644 --- a/fs/autofs4/root.c +++ b/fs/autofs4/root.c | |||
@@ -315,12 +315,19 @@ out_error: | |||
315 | */ | 315 | */ |
316 | static int autofs4_revalidate(struct dentry *dentry, struct nameidata *nd) | 316 | static int autofs4_revalidate(struct dentry *dentry, struct nameidata *nd) |
317 | { | 317 | { |
318 | struct inode *dir = dentry->d_parent->d_inode; | 318 | struct inode *dir; |
319 | struct autofs_sb_info *sbi = autofs4_sbi(dir->i_sb); | 319 | struct autofs_sb_info *sbi; |
320 | int oz_mode = autofs4_oz_mode(sbi); | 320 | int oz_mode; |
321 | int flags = nd ? nd->flags : 0; | 321 | int flags = nd ? nd->flags : 0; |
322 | int status = 1; | 322 | int status = 1; |
323 | 323 | ||
324 | if (flags & LOOKUP_RCU) | ||
325 | return -ECHILD; | ||
326 | |||
327 | dir = dentry->d_parent->d_inode; | ||
328 | sbi = autofs4_sbi(dir->i_sb); | ||
329 | oz_mode = autofs4_oz_mode(sbi); | ||
330 | |||
324 | /* Pending dentry */ | 331 | /* Pending dentry */ |
325 | spin_lock(&sbi->fs_lock); | 332 | spin_lock(&sbi->fs_lock); |
326 | if (autofs4_ispending(dentry)) { | 333 | if (autofs4_ispending(dentry)) { |