<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/linux.git/include/linux/stringhash.h, branch v4.7</title>
<subtitle>Linux Kernel
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v4.7</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v4.7'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/'/>
<updated>2016-05-28T19:42:50Z</updated>
<entry>
<title>fs/namei.c: Add hashlen_string() function</title>
<updated>2016-05-28T19:42:50Z</updated>
<author>
<name>George Spelvin</name>
<email>linux@sciencehorizons.net</email>
</author>
<published>2016-05-20T12:41:37Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=fcfd2fbf22d2587196890103d41e3d554c47da0e'/>
<id>urn:sha1:fcfd2fbf22d2587196890103d41e3d554c47da0e</id>
<content type='text'>
We'd like to make more use of the highly-optimized dcache hash functions
throughout the kernel, rather than have every subsystem create its own,
and a function that hashes basic null-terminated strings is required
for that.

(The name is to emphasize that it returns both hash and length.)

It's actually useful in the dcache itself, specifically d_alloc_name().
Other uses in the next patch.

full_name_hash() is also tweaked to make it more generally useful:
1) Take a "char *" rather than "unsigned char *" argument, to
   be consistent with hash_name().
2) Handle zero-length inputs.  If we want more callers, we don't want
   to make them worry about corner cases.

Signed-off-by: George Spelvin &lt;linux@sciencehorizons.net&gt;
</content>
</entry>
<entry>
<title>Pull out string hash to &lt;linux/stringhash.h&gt;</title>
<updated>2016-05-28T19:42:40Z</updated>
<author>
<name>George Spelvin</name>
<email>linux@sciencehorizons.net</email>
</author>
<published>2016-05-20T11:26:00Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=f4bcbe792b8f434e32487cff9d9e30ab45a3ce02'/>
<id>urn:sha1:f4bcbe792b8f434e32487cff9d9e30ab45a3ce02</id>
<content type='text'>
... so they can be used without the rest of &lt;linux/dcache.h&gt;

The hashlen_* macros will make sense next patch.

Signed-off-by: George Spelvin &lt;linux@sciencehorizons.net&gt;
</content>
</entry>
</feed>
