mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
Make license compatibility checks consistent
Apply the license specified in the META file to ensure the compatibility checks are all performed consistently. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
@@ -85,12 +85,6 @@ mutex_owner(kmutex_t *mp)
|
||||
})
|
||||
#define mutex_exit(mp) mutex_unlock(&(mp)->m)
|
||||
|
||||
#ifdef HAVE_GPL_ONLY_SYMBOLS
|
||||
# define mutex_enter_nested(mp, sc) mutex_lock_nested(&(mp)->m, sc)
|
||||
#else
|
||||
# define mutex_enter_nested(mp, sc) mutex_enter(mp)
|
||||
#endif /* HAVE_GPL_ONLY_SYMBOLS */
|
||||
|
||||
#else /* HAVE_MUTEX_OWNER */
|
||||
|
||||
typedef struct {
|
||||
@@ -197,19 +191,6 @@ spl_mutex_clear_owner(kmutex_t *mp)
|
||||
mutex_unlock(MUTEX(mp)); \
|
||||
})
|
||||
|
||||
#ifdef HAVE_GPL_ONLY_SYMBOLS
|
||||
# define mutex_enter_nested(mp, sc) \
|
||||
({ \
|
||||
mutex_lock_nested(MUTEX(mp), sc); \
|
||||
spl_mutex_set_owner(mp); \
|
||||
})
|
||||
#else
|
||||
# define mutex_enter_nested(mp, sc) \
|
||||
({ \
|
||||
mutex_enter(mp); \
|
||||
})
|
||||
#endif
|
||||
|
||||
#endif /* HAVE_MUTEX_OWNER */
|
||||
|
||||
int spl_mutex_init(void);
|
||||
|
||||
Reference in New Issue
Block a user