George Spelvin
fcfd2fbf22
fs/namei.c: Add hashlen_string() function
...
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 <linux@sciencehorizons.net>
2016-05-28 15:42:50 -04:00
..
2016-04-04 10:41:08 -07:00
2016-01-20 17:09:18 -08:00
2016-04-04 10:41:08 -07:00
2016-04-04 10:41:08 -07:00
2016-03-19 18:52:29 -07:00
2016-01-14 16:00:49 -08:00
2016-01-14 16:00:49 -08:00
2016-04-09 10:41:34 -07:00
2016-04-04 10:41:08 -07:00
2016-04-25 20:54:13 +02:00
2016-04-04 10:41:08 -07:00
2016-01-23 12:24:56 -08:00
2016-04-04 10:41:08 -07:00
2016-04-04 10:41:08 -07:00
2016-04-12 20:01:35 -07:00
2016-04-12 15:01:53 -07:00
2016-04-26 15:47:32 -07:00
2016-04-04 10:41:08 -07:00
2016-05-11 00:00:29 -04:00
2016-04-04 10:41:08 -07:00
2016-01-14 16:00:49 -08:00
2016-04-04 10:41:08 -07:00
2016-01-22 18:04:28 -05:00
2016-04-04 10:41:08 -07:00
2016-04-12 20:01:35 -07:00
2016-04-12 10:25:30 -07:00
2016-03-22 15:36:02 -07:00
2016-04-04 10:41:08 -07:00
2016-04-04 10:41:08 -07:00
2016-04-25 13:01:04 +02:00
2016-04-04 10:41:08 -07:00
2016-04-04 10:41:08 -07:00
2016-04-04 10:41:08 -07:00
2016-04-04 10:41:08 -07:00
2016-02-27 19:15:51 -05:00
2016-04-04 10:41:08 -07:00
2016-05-11 00:00:29 -04:00
2016-04-04 10:41:08 -07:00
2016-04-04 10:41:08 -07:00
2016-04-04 10:41:08 -07:00
2016-05-12 11:03:51 -04:00
2016-01-07 10:10:50 -05:00
2016-04-04 10:41:08 -07:00
2016-04-04 10:41:08 -07:00
2016-04-04 10:41:08 -07:00
2016-04-07 17:22:20 -07:00
2015-08-13 10:22:06 -04:00
2016-03-24 19:50:32 -07:00
2016-04-04 10:41:08 -07:00
2016-02-18 16:23:24 -08:00
2016-04-04 10:41:08 -07:00
2016-05-12 15:52:50 -07:00
2016-01-14 16:00:49 -08:00
2016-04-09 10:33:58 -07:00
2016-05-10 23:58:18 -04:00
2016-05-09 17:40:59 -07:00
2016-04-04 10:41:08 -07:00
2016-01-14 16:00:49 -08:00
2016-04-04 10:41:08 -07:00
2016-03-29 17:20:10 +02:00
2016-04-04 10:41:08 -07:00
2016-04-04 10:41:08 -07:00
2016-01-14 16:00:49 -08:00
2016-04-04 10:41:08 -07:00
2015-11-13 21:53:18 -08:00
2016-04-04 10:41:08 -07:00
2016-01-22 18:04:28 -05:00
2016-04-04 10:41:08 -07:00
2016-04-25 15:18:50 +02:00
2016-04-04 10:41:08 -07:00
2016-04-04 10:41:08 -07:00
2015-09-04 16:54:41 -07:00
2016-01-22 18:04:28 -05:00
2015-12-06 21:17:14 -05:00
2016-04-04 10:41:08 -07:00
2016-04-04 10:41:08 -07:00
2016-01-22 18:04:28 -05:00
2016-04-04 10:41:08 -07:00
2016-04-04 10:41:08 -07:00
2015-08-05 13:49:35 -07:00
2016-02-14 14:25:59 -08:00
2016-01-04 10:28:32 -05:00
2016-03-22 15:36:02 -07:00
2016-04-04 10:41:08 -07:00
2016-05-28 15:42:50 -04:00
2016-04-04 10:41:08 -07:00
2015-08-17 18:39:46 -04:00
2016-03-22 15:36:02 -07:00
2016-03-17 15:09:34 -07:00
2016-03-20 19:08:56 -07:00
2016-01-09 02:55:37 -05:00
2016-03-22 15:36:02 -07:00
2015-08-07 04:39:40 +03:00
2016-01-14 16:00:49 -08:00
2016-01-19 12:02:23 -05:00
2016-04-04 10:41:08 -07:00
2016-02-16 14:57:21 -07:00
2016-01-08 21:20:11 -05:00
2016-01-22 18:04:28 -05:00
2016-03-26 12:59:04 -07:00
2016-04-04 10:41:08 -07:00
2016-01-22 18:04:28 -05:00
2016-03-26 12:59:04 -07:00
2016-02-22 22:44:04 -05:00
2015-06-30 19:44:56 -07:00
2016-04-04 10:41:08 -07:00
2016-05-28 15:42:50 -04:00
2016-01-22 18:04:28 -05:00
2015-09-11 15:21:34 -07:00
2016-05-10 23:55:01 -04:00
2016-04-04 10:41:08 -07:00
2016-05-05 09:54:45 -05:00
2015-07-22 20:33:27 -05:00
2015-12-13 19:46:12 -05:00
2016-03-16 13:09:08 -04:00
2016-03-18 16:07:38 -04:00
2016-01-22 18:04:28 -05:00
2016-03-17 15:09:34 -07:00
2016-04-14 12:56:09 -07:00
2015-08-07 04:39:40 +03:00
2016-05-11 00:00:29 -04:00
2016-01-16 11:17:23 -08:00
2016-03-03 14:42:50 -07:00
2016-04-04 10:41:08 -07:00
2016-01-17 11:13:55 +01:00
2016-03-02 09:03:18 -08:00
2016-01-22 18:04:28 -05:00
2016-02-20 00:15:51 -05:00