From 059cb4843b70ee20e37c7c19435ff02436eff9e5 Mon Sep 17 00:00:00 2001 From: Mateusz Guzik Date: Sun, 19 Jan 2020 17:05:26 +0000 Subject: [PATCH] cache: counter_u64_add_protected -> counter_u64_add Fixes booting on RISC-V where it does happen to not be equivalent. Reported by: lwhsu --- sys/kern/vfs_cache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c index 087b091d6ab..35622a0ad8b 100644 --- a/sys/kern/vfs_cache.c +++ b/sys/kern/vfs_cache.c @@ -412,14 +412,14 @@ static void cache_numcachehv_inc(void) { - counter_u64_add_protected(numcachehv, 1); + counter_u64_add(numcachehv, 1); } static void cache_numcachehv_dec(void) { - counter_u64_add_protected(numcachehv, -1); + counter_u64_add(numcachehv, -1); } #else static void