Module Name: src
Committed By: mrg
Date: Mon Feb 4 08:00:27 UTC 2019
Modified Files:
src/sys/kern: subr_thmap.c
Log Message:
pass a pointer to atomic_cas_ptr_p(), not an (equiv) integer.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/kern/subr_thmap.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/subr_thmap.c
diff -u src/sys/kern/subr_thmap.c:1.4 src/sys/kern/subr_thmap.c:1.5
--- src/sys/kern/subr_thmap.c:1.4 Sat Jan 19 20:42:54 2019
+++ src/sys/kern/subr_thmap.c Mon Feb 4 08:00:27 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_thmap.c,v 1.4 2019/01/19 20:42:54 rmind Exp $ */
+/* $NetBSD: subr_thmap.c,v 1.5 2019/02/04 08:00:27 mrg Exp $ */
/*-
* Copyright (c) 2018 Mindaugas Rasiukevicius <rmind at noxt eu>
@@ -112,7 +112,7 @@
#include "utils.h"
#endif
-THMAP_RCSID("$NetBSD: subr_thmap.c,v 1.4 2019/01/19 20:42:54 rmind Exp $");
+THMAP_RCSID("$NetBSD: subr_thmap.c,v 1.5 2019/02/04 08:00:27 mrg Exp $");
/*
* NetBSD kernel wrappers
@@ -499,7 +499,7 @@ again:
thmap->ops->free(nptr, THMAP_INODE_LEN);
return false;
}
- if (!atomic_cas_ptr_p(&thmap->root[i], THMAP_NULL, nptr)) {
+ if (!atomic_cas_ptr_p(&thmap->root[i], NULL, nptr)) {
goto again;
}
return true;