From 4893a6f91569e08513ec0c8c260ef307044741b6 Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Mon, 19 Jul 2021 15:45:26 -0700 Subject: [PATCH] scoutfs_dirents_equal should return bool It looks like it returned u64 because it was derived from _name_hash(). Signed-off-by: Zach Brown --- kmod/src/dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kmod/src/dir.c b/kmod/src/dir.c index c6eb331d..df89f2e2 100644 --- a/kmod/src/dir.c +++ b/kmod/src/dir.c @@ -253,7 +253,7 @@ static u64 dirent_name_hash(const char *name, unsigned int name_len) ((u64)dirent_name_fingerprint(name, name_len) << 32); } -static u64 dirent_names_equal(const char *a_name, unsigned int a_len, +static bool dirent_names_equal(const char *a_name, unsigned int a_len, const char *b_name, unsigned int b_len) { return a_len == b_len && memcmp(a_name, b_name, a_len) == 0;