From: Prakash Surya Date: Mon, 12 Dec 2011 23:37:30 +0000 (-0800) Subject: Fix usage of MUTEX macro in mutex_enter_nested X-Git-Tag: zfs-0.8.0-rc1~152^2~426 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=93806f58a620e3e0fabd75db538c789cdc653afe;p=zfs Fix usage of MUTEX macro in mutex_enter_nested A call site of the MUTEX macro had incorrectly placed its closing parenthesis, causing two parameters to be passed rather than one. This change moves the misplaced parenthesis to fix the typographical error. Signed-off-by: Prakash Surya Signed-off-by: Brian Behlendorf Closes #70 --- diff --git a/include/sys/mutex.h b/include/sys/mutex.h index b41b3cead..213bc2477 100644 --- a/include/sys/mutex.h +++ b/include/sys/mutex.h @@ -195,7 +195,7 @@ spl_mutex_clear_owner(kmutex_t *mp) #ifdef HAVE_GPL_ONLY_SYMBOLS # define mutex_enter_nested(mp, sc) \ ({ \ - mutex_lock_nested(MUTEX(mp, sc)); \ + mutex_lock_nested(MUTEX(mp), sc); \ spl_mutex_set_owner(mp); \ }) #else