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

Commit 74931da7 authored by Al Viro's avatar Al Viro
Browse files

make simple_lookup() usable for filesystems that set ->s_d_op



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent ec193cf5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -61,6 +61,7 @@ struct dentry *simple_lookup(struct inode *dir, struct dentry *dentry, unsigned

	if (dentry->d_name.len > NAME_MAX)
		return ERR_PTR(-ENAMETOOLONG);
	if (!dentry->d_sb->s_d_op)
		d_set_d_op(dentry, &simple_dentry_operations);
	d_add(dentry, NULL);
	return NULL;