From: Jeff Layton <jlayton-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
To: Gerlando Falauto
<gerlando.falauto-SkAbAL50j+5BDgjK7y7TUQ@public.gmane.org>
Cc: linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
sfrench-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org,
samba-technical-w/Ol4Ecudpl8XjKLYN78aQ@public.gmane.org
Subject: Re: [PATCH] CIFS: fix automount for DFS shares
Date: Mon, 17 Oct 2011 06:45:42 -0400 [thread overview]
Message-ID: <20111017064542.036ff6bb@tlielax.poochiereds.net> (raw)
In-Reply-To: <1318845543-15085-2-git-send-email-gerlando.falauto-SkAbAL50j+5BDgjK7y7TUQ@public.gmane.org>
On Mon, 17 Oct 2011 11:59:03 +0200
Gerlando Falauto <gerlando.falauto-SkAbAL50j+5BDgjK7y7TUQ@public.gmane.org> wrote:
> 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-SkAbAL50j+5BDgjK7y7TUQ@public.gmane.org>
> ---
> 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 */
The comment is a little unclear. A better comment might be -- "Forcibly
invalidate automounting inodes", or something along those lines...
> + if (IS_AUTOMOUNT(direntry->d_inode))
> + return 0;
> return 1;
> + }
> }
>
> /*
The patch itself looks reasonable though...
Reviewed-by: Jeff Layton <jlayton-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
next prev parent reply other threads:[~2011-10-17 10:45 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-17 9:59 CIFS fails to automount DFS shares Gerlando Falauto
[not found] ` <1318845543-15085-1-git-send-email-gerlando.falauto-SkAbAL50j+5BDgjK7y7TUQ@public.gmane.org>
2011-10-17 9:59 ` [PATCH] CIFS: fix automount for " Gerlando Falauto
[not found] ` <1318845543-15085-2-git-send-email-gerlando.falauto-SkAbAL50j+5BDgjK7y7TUQ@public.gmane.org>
2011-10-17 10:45 ` Jeff Layton [this message]
[not found] ` <20111017064542.036ff6bb-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2011-10-17 14:16 ` Steve French
2011-10-18 8:58 ` Gerlando Falauto
2011-10-18 8:58 ` Gerlando Falauto
-- strict thread matches above, loose matches on Subject: below --
2011-10-07 11:09 CIFS fails to automount " Gerlando Falauto
2011-10-07 11:09 ` [PATCH] CIFS: fix automount for " Gerlando Falauto
2011-10-23 11:14 ` Ian Kent
2011-10-23 11:46 ` Jeff Layton
2011-10-23 13:45 ` Ian Kent
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=20111017064542.036ff6bb@tlielax.poochiereds.net \
--to=jlayton-eunubhrolfbytjvyw6ydsg@public.gmane.org \
--cc=gerlando.falauto-SkAbAL50j+5BDgjK7y7TUQ@public.gmane.org \
--cc=linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=samba-technical-w/Ol4Ecudpl8XjKLYN78aQ@public.gmane.org \
--cc=sfrench-eUNUBHrolfbYtjvyW6yDsg@public.gmane.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.