From: Steven Whitehouse <swhiteho@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH] GFS2: Hash the negative dentry during inode lookup
Date: Thu, 11 Sep 2014 13:42:13 +0100 [thread overview]
Message-ID: <541198A5.2040000@redhat.com> (raw)
In-Reply-To: <20140910183218.A7D7283F44@bcodding-csb.redhat.com>
Hi,
On 10/09/14 19:09, Benjamin Coddington wrote:
> Fix a regression introduced by:
> 6d4ade986f9c8df31e68 GFS2: Add atomic_open support
> where an early return misses d_splice_alias() which had been
> adding the negative dentry.
>
> Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
> ---
> fs/gfs2/inode.c | 4 +++-
> 1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c
> index e62e594..9317ddc 100644
> --- a/fs/gfs2/inode.c
> +++ b/fs/gfs2/inode.c
> @@ -840,8 +840,10 @@ static struct dentry *__gfs2_lookup(struct inode *dir, struct dentry *dentry,
> int error;
>
> inode = gfs2_lookupi(dir, &dentry->d_name, 0);
> - if (!inode)
> + if (inode == NULL) {
> + d_add(dentry, NULL);
> return NULL;
> + }
> if (IS_ERR(inode))
> return ERR_CAST(inode);
>
Now in the GFS2 -nmw tree, and I've added Bob's signed-off-by too. Thanks,
Steve.
prev parent reply other threads:[~2014-09-11 12:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-10 18:09 [Cluster-devel] [PATCH] GFS2: Hash the negative dentry during inode lookup Benjamin Coddington
2014-09-11 12:42 ` Steven Whitehouse [this message]
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=541198A5.2040000@redhat.com \
--to=swhiteho@redhat.com \
/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.