Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Rename other copy of hash_string to hashlen_string

The original name was simply hash_string(), but that conflicted with a
function with that name in drivers/base/power/trace.c, and I decided
that calling it "hashlen_" was better anyway.

But you have to do it in two places.

[ This caused build errors for architectures that don't define
CONFIG_DCACHE_WORD_ACCESS - Linus ]

Signed-off-by: George Spelvin <linux@sciencehorizons.net>
Reported-by: Guenter Roeck <linux@roeck-us.net>
Fixes: fcfd2fbf22d2 ("fs/namei.c: Add hashlen_string() function")
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

George Spelvin and committed by
Linus Torvalds
f2a031b6 037369b8

+2 -2
+2 -2
fs/namei.c
··· 1962 1962 EXPORT_SYMBOL(full_name_hash); 1963 1963 1964 1964 /* Return the "hash_len" (hash and length) of a null-terminated string */ 1965 - u64 hash_string(const char *name) 1965 + u64 hashlen_string(const char *name) 1966 1966 { 1967 1967 unsigned long hash = init_name_hash(); 1968 1968 unsigned long len = 0, c; ··· 1975 1975 } while (c); 1976 1976 return hashlen_create(end_name_hash(hash), len); 1977 1977 } 1978 - EXPORT_SYMBOL(hash_string); 1978 + EXPORT_SYMBOL(hashlen_string); 1979 1979 1980 1980 /* 1981 1981 * We know there's a real path component here of at least