projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82b6efc
)
ANDROID: sdcardfs: correct order of descriptors
author
Daniel Rosenberg
<drosen@google.com>
Tue, 21 Mar 2017 23:28:27 +0000
(16:28 -0700)
committer
Amit Pundir
<amit.pundir@linaro.org>
Mon, 10 Apr 2017 07:42:16 +0000
(13:12 +0530)
Signed-off-by: Daniel Rosenberg <drosen@google.com>
Bug:
35331000
Change-Id: Ia6d16b19c8c911f41231d2a12be0740057edfacf
fs/sdcardfs/packagelist.c
patch
|
blob
|
history
diff --git
a/fs/sdcardfs/packagelist.c
b/fs/sdcardfs/packagelist.c
index e72fe83f783791eb21f2d7d21667b058b53073c3..5398ebf8a34b320e8e966b9c1cca8102850e6135 100644
(file)
--- a/
fs/sdcardfs/packagelist.c
+++ b/
fs/sdcardfs/packagelist.c
@@
-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);