Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7b7a9115 authored by Benjamin Coddington's avatar Benjamin Coddington Committed by Steven Whitehouse
Browse files

GFS2: Hash the negative dentry during inode lookup



Fix a regression introduced by:
6d4ade98 GFS2: Add atomic_open support
where an early return misses d_splice_alias() which had been
adding the negative dentry.

Signed-off-by: default avatarBenjamin Coddington <bcodding@redhat.com>
Signed-off-by: default avatarBob Peterson <rpeterso@redhat.com>
Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
parent 2ddfbdd6
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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);