Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157493756
D4577.id11360.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D4577.id11360.diff
View Options
Index: head/sys/vm/vm_page.h
===================================================================
--- head/sys/vm/vm_page.h
+++ head/sys/vm/vm_page.h
@@ -514,37 +514,38 @@
#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 { \
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, May 23, 1:14 AM (14 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33437521
Default Alt Text
D4577.id11360.diff (1 KB)
Attached To
Mode
D4577: vm_page.h: page busy macro fixups
Attached
Detach File
Event Timeline
Log In to Comment