/* Lookup the data. This is trivial - if the dentry didn't already exist, we know it is negative. Set d_op to delete negative dentries.  */
struct dentry* simple_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd)
/* Lookup the data. This is trivial - if the dentry didn't already exist, we know it is negative. Set d_op to delete negative dentries.  */
struct dentry* simple_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd)
{
	static const struct dentry_operations simple_dentry_operations = {
		.d_delete = simple_delete_dentry,
	};
	if (dentry->d_name.len > NAME_MAX)
		return ERR_PTR(-ENAMETOOLONG);
	dentry->d_op = &simple_dentry_operations;
	d_add(dentry, NULL);
	return NULL;
}