mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 18:11:00 +03:00
Cleaned up MUTEX() #define
The old define assumed a specific layout of the kmutex_t struct. This patch makes the macro independent from the actual struct layout. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
parent
66cdc93b8c
commit
f5e76dea03
@ -101,7 +101,7 @@ extern int spl_mutex_spin_max(void);
|
||||
# define spl_mutex_spin_max() 0
|
||||
#endif /* HAVE_TASK_CURR */
|
||||
|
||||
#define MUTEX(mp) ((struct mutex *)(mp))
|
||||
#define MUTEX(mp) (&((mp)->m_mutex))
|
||||
|
||||
static inline void
|
||||
spl_mutex_set_owner(kmutex_t *mp)
|
||||
|
Loading…
Reference in New Issue
Block a user