Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern pass a pointer to atomic_cas_ptr_p(), not an (equiv...
details: https://anonhg.NetBSD.org/src/rev/61c0c1f638eb
branches: trunk
changeset: 448500:61c0c1f638eb
user: mrg <mrg%NetBSD.org@localhost>
date: Mon Feb 04 08:00:27 2019 +0000
description:
pass a pointer to atomic_cas_ptr_p(), not an (equiv) integer.
diffstat:
sys/kern/subr_thmap.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 6bde39bfa6a1 -r 61c0c1f638eb sys/kern/subr_thmap.c
--- a/sys/kern/subr_thmap.c Mon Feb 04 07:59:01 2019 +0000
+++ b/sys/kern/subr_thmap.c Mon Feb 04 08:00:27 2019 +0000
@@ -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 @@
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;
Home |
Main Index |
Thread Index |
Old Index