mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-18 10:21:01 +03:00
937879f11d
- Replacing all BUG_ON()'s with proper ASSERT()'s - Using ENTRY,EXIT,GOTO, and RETURN macro to instument call paths git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@78 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
15 lines
306 B
C
15 lines
306 B
C
#include <sys/atomic.h>
|
|
|
|
#ifdef DEBUG_SUBSYSTEM
|
|
#undef DEBUG_SUBSYSTEM
|
|
#endif
|
|
|
|
#define DEBUG_SUBSYSTEM S_ATOMIC
|
|
|
|
/* Global atomic lock declarations */
|
|
spinlock_t atomic64_lock = SPIN_LOCK_UNLOCKED;
|
|
spinlock_t atomic32_lock = SPIN_LOCK_UNLOCKED;
|
|
|
|
EXPORT_SYMBOL(atomic64_lock);
|
|
EXPORT_SYMBOL(atomic32_lock);
|