svn commit: r292383 - head/sys/vm
Conrad E. Meyer
cem at FreeBSD.org
Wed Dec 16 23:23:16 UTC 2015
Author: cem
Date: Wed Dec 16 23:23:12 2015
New Revision: 292383
URL: https://svnweb.freebsd.org/changeset/base/292383
Log:
vm_page.h: page busy macro fixups
Minor changes to:
- delete extraneous trailing semicolons from macro definitions, and
- correct spelling of "busying" in panic messages
Submitted by: Ryan Libby <rlibby at gmail.com>
Reviewed by: alc, kib
Sponsored by: EMC / Isilon Storage Division
Differential Revision: https://reviews.freebsd.org/D4577
Modified:
head/sys/vm/vm_page.h
Modified: head/sys/vm/vm_page.h
==============================================================================
--- head/sys/vm/vm_page.h Wed Dec 16 22:59:32 2015 (r292382)
+++ head/sys/vm/vm_page.h Wed Dec 16 23:23:12 2015 (r292383)
@@ -514,37 +514,38 @@ void vm_page_lock_assert_KBI(vm_page_t m
#define vm_page_assert_sbusied(m) \
KASSERT(vm_page_sbusied(m), \
("vm_page_assert_sbusied: page %p not shared busy @ %s:%d", \
- (void *)m, __FILE__, __LINE__));
+ (m), __FILE__, __LINE__))
#define vm_page_assert_unbusied(m) \
KASSERT(!vm_page_busied(m), \
("vm_page_assert_unbusied: page %p busy @ %s:%d", \
- (void *)m, __FILE__, __LINE__));
+ (m), __FILE__, __LINE__))
#define vm_page_assert_xbusied(m) \
KASSERT(vm_page_xbusied(m), \
("vm_page_assert_xbusied: page %p not exclusive busy @ %s:%d", \
- (void *)m, __FILE__, __LINE__));
+ (m), __FILE__, __LINE__))
#define vm_page_busied(m) \
((m)->busy_lock != VPB_UNBUSIED)
#define vm_page_sbusy(m) do { \
if (!vm_page_trysbusy(m)) \
- panic("%s: page %p failed shared busing", __func__, m); \
+ panic("%s: page %p failed shared busying", __func__, \
+ (m)); \
} while (0)
#define vm_page_tryxbusy(m) \
- (atomic_cmpset_acq_int(&m->busy_lock, VPB_UNBUSIED, \
+ (atomic_cmpset_acq_int(&(m)->busy_lock, VPB_UNBUSIED, \
VPB_SINGLE_EXCLUSIVER))
#define vm_page_xbusied(m) \
- ((m->busy_lock & VPB_SINGLE_EXCLUSIVER) != 0)
+ (((m)->busy_lock & VPB_SINGLE_EXCLUSIVER) != 0)
#define vm_page_xbusy(m) do { \
if (!vm_page_tryxbusy(m)) \
- panic("%s: page %p failed exclusive busing", __func__, \
- m); \
+ panic("%s: page %p failed exclusive busying", __func__, \
+ (m)); \
} while (0)
#define vm_page_xunbusy(m) do { \
More information about the svn-src-head
mailing list