Author: mjg
Date: Sun Jan 19 17:05:26 2020
New Revision: 356883
URL: https://svnweb.freebsd.org/changeset/base/356883
Log:
cache: counter_u64_add_protected -> counter_u64_add
Fixes booting on RISC-V where it does happen to not be equivalent.
Reported by: lwhsu
Modified:
head/sys/kern/vfs_cache.c
Modified: head/sys/kern/vfs_cache.c
==============================================================================
--- head/sys/kern/vfs_cache.c Sun Jan 19 16:24:25 2020 (r356882)
+++ head/sys/kern/vfs_cache.c Sun Jan 19 17:05:26 2020 (r356883)
@@ -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
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"