Skip to content

Commit

Permalink
Cleaned up MUTEX() #define
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
gunnarbeutner authored and behlendorf committed Oct 19, 2011
1 parent 66cdc93 commit f5e76de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/sys/mutex.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f5e76de

Please sign in to comment.