From: Gerlando Falauto <gerlando.falauto@keymile.com>
To: linux-kernel@vger.kernel.org
Cc: David Howells <dhowells@redhat.com>,
Gerlando Falauto <gerlando.falauto@keymile.com>
Subject: [PATCH] CIFS: fix automount for DFS shares
Date: Fri, 7 Oct 2011 13:09:31 +0200 [thread overview]
Message-ID: <1317985771-28876-2-git-send-email-gerlando.falauto@keymile.com> (raw)
In-Reply-To: <1317985771-28876-1-git-send-email-gerlando.falauto@keymile.com>
Automounting directories are now invalidated by .d_revalidate()
so to be d_instantiate()d again with the right DCACHE_NEED_AUTOMOUNT
flag
Signed-off-by: Gerlando Falauto <gerlando.falauto@keymile.com>
---
fs/cifs/dir.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c
index 9ea65cf..67f54d3 100644
--- a/fs/cifs/dir.c
+++ b/fs/cifs/dir.c
@@ -637,8 +637,13 @@ cifs_d_revalidate(struct dentry *direntry, struct nameidata *nd)
if (direntry->d_inode) {
if (cifs_revalidate_dentry(direntry))
return 0;
- else
+ else {
+ /* We want automonting inodes to be
+ * considered invalid or so */
+ if (IS_AUTOMOUNT(direntry->d_inode))
+ return 0;
return 1;
+ }
}
/*
--
1.7.1
next prev parent reply other threads:[~2011-10-07 11:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-07 11:09 CIFS fails to automount " Gerlando Falauto
2011-10-07 11:09 ` Gerlando Falauto [this message]
2011-10-23 11:14 ` [PATCH] CIFS: fix automount for " Ian Kent
2011-10-23 11:46 ` Jeff Layton
2011-10-23 13:45 ` Ian Kent
[not found] <1318845543-15085-1-git-send-email-gerlando.falauto@keymile.com>
2011-10-18 8:58 ` Gerlando Falauto
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1317985771-28876-2-git-send-email-gerlando.falauto@keymile.com \
--to=gerlando.falauto@keymile.com \
--cc=dhowells@redhat.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®