Skip to content
Snippets Groups Projects
Commit 762bee4e authored by Daniel Rosenberg's avatar Daniel Rosenberg
Browse files

ANDROID: sdcardfs: correct order of descriptors


Signed-off-by: default avatarDaniel Rosenberg <drosen@google.com>
Bug: 35331000
Change-Id: Ia6d16b19c8c911f41231d2a12be0740057edfacf
parent e204b57e
Branches
Tags
No related merge requests found
......@@ -48,12 +48,14 @@ static struct kmem_cache *hashtable_entry_cachep;
static unsigned int full_name_case_hash(const unsigned char *name, unsigned int len)
{
unsigned long hash = init_name_hash();
while (len--)
hash = partial_name_hash(tolower(*name++), hash);
return end_name_hash(hash);
}
static void inline qstr_init(struct qstr *q, const char *name) {
static inline void qstr_init(struct qstr *q, const char *name)
{
q->name = name;
q->len = strlen(q->name);
q->hash = full_name_case_hash(q->name, q->len);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment