diff options
author | 2011-01-14 18:45:47 +0000 | |
---|---|---|
committer | 2011-01-15 20:07:35 -0500 | |
commit | 01c64feac45cea1317263eabc4f7ee1b240f297f (patch) | |
tree | b1df5409132ef04e380104a6617d2781f8e196f0 /fs/cifs/dir.c | |
parent | NFS: Use d_automount() rather than abusing follow_link() (diff) | |
download | linux-01c64feac45cea1317263eabc4f7ee1b240f297f.tar.gz linux-01c64feac45cea1317263eabc4f7ee1b240f297f.tar.bz2 linux-01c64feac45cea1317263eabc4f7ee1b240f297f.zip |
CIFS: Use d_automount() rather than abusing follow_link()
Make CIFS use the new d_automount() dentry operation rather than abusing
follow_link() on directories.
[NOTE: THIS IS UNTESTED!]
Signed-off-by: David Howells <dhowells@redhat.com>
Cc: Steve French <sfrench@samba.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/cifs/dir.c')
-rw-r--r-- | fs/cifs/dir.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c index 1e95dd635632..dd5f22918c33 100644 --- a/fs/cifs/dir.c +++ b/fs/cifs/dir.c @@ -675,6 +675,7 @@ cifs_d_revalidate(struct dentry *direntry, struct nameidata *nd) const struct dentry_operations cifs_dentry_ops = { .d_revalidate = cifs_d_revalidate, + .d_automount = cifs_dfs_d_automount, /* d_delete: cifs_d_delete, */ /* not needed except for debugging */ }; @@ -711,4 +712,5 @@ const struct dentry_operations cifs_ci_dentry_ops = { .d_revalidate = cifs_d_revalidate, .d_hash = cifs_ci_hash, .d_compare = cifs_ci_compare, + .d_automount = cifs_dfs_d_automount, }; |