diff options
author | Gerlando Falauto <gerlando.falauto@keymile.com> | 2011-10-18 04:58:50 -0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2011-10-18 11:49:38 -0400 |
commit | ad4778fb40994dd7c779069dad6ff704d75b81e6 (patch) | |
tree | 10fa342478770437160177d81bed2a797f2be18e /fs/cifs/dir.c | |
parent | 7748dd6eab8e13f974d4664395e76afffacda04b (diff) |
CIFS: fix automount for DFS shares
Automounting directories are now invalidated by .d_revalidate()
so to be d_instantiate()d again with the right DCACHE_NEED_AUTOMOUNT
flag
Reviewed-by: Jeff Layton <jlayton@samba.org>
Signed-off-by: Gerlando Falauto <gerlando.falauto@keymile.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/dir.c')
-rw-r--r-- | fs/cifs/dir.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c index 0c8098d54d2b..d7eeb9d3ed6f 100644 --- a/fs/cifs/dir.c +++ b/fs/cifs/dir.c | |||
@@ -648,8 +648,16 @@ cifs_d_revalidate(struct dentry *direntry, struct nameidata *nd) | |||
648 | if (direntry->d_inode) { | 648 | if (direntry->d_inode) { |
649 | if (cifs_revalidate_dentry(direntry)) | 649 | if (cifs_revalidate_dentry(direntry)) |
650 | return 0; | 650 | return 0; |
651 | else | 651 | else { |
652 | /* | ||
653 | * Forcibly invalidate automounting directory inodes | ||
654 | * (remote DFS directories) so to have them | ||
655 | * instantiated again for automount | ||
656 | */ | ||
657 | if (IS_AUTOMOUNT(direntry->d_inode)) | ||
658 | return 0; | ||
652 | return 1; | 659 | return 1; |
660 | } | ||
653 | } | 661 | } |
654 | 662 | ||
655 | /* | 663 | /* |