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

Commit 4790c48f authored by Amit Pundir's avatar Amit Pundir
Browse files

ANDROID: sdcardfs: add parent pointer into dentry name hash



Fix sdcardfs compilation error introduced in code refactoring
by upstream commit 8387ff25 ("vfs: make the string hashes
salt the hash").

Signed-off-by: default avatarAmit Pundir <amit.pundir@linaro.org>
parent 5a95be36
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -135,7 +135,7 @@ static int sdcardfs_hash_ci(const struct dentry *dentry,
	//len = vfat_striptail_len(qstr);
	len = qstr->len;

	hash = init_name_hash();
	hash = init_name_hash(dentry);
	while (len--)
		//hash = partial_name_hash(nls_tolower(t, *name++), hash);
		hash = partial_name_hash(tolower(*name++), hash);
+1 −1
Original line number Diff line number Diff line
@@ -285,7 +285,7 @@ static struct dentry *__sdcardfs_lookup(struct dentry *dentry,
	/* instatiate a new negative dentry */
	this.name = name;
	this.len = strlen(name);
	this.hash = full_name_hash(this.name, this.len);
	this.hash = full_name_hash(dentry, this.name, this.len);
	lower_dentry = d_lookup(lower_dir_dentry, &this);
	if (lower_dentry)
		goto setup_lower;