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

Commit 8966c5e0 authored by David Woodhouse's avatar David Woodhouse Committed by Al Viro
Browse files

[JFFS2] Use d_splice_alias() not d_add() in jffs2_lookup()



Now that JFFS2 can be exported by NFS, we need to get this right.

Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent c002a6c7
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -108,9 +108,7 @@ static struct dentry *jffs2_lookup(struct inode *dir_i, struct dentry *target,
		}
	}

	d_add(target, inode);

	return NULL;
	return d_splice_alias(inode, target);
}

/***********************************************************************/