staging/zmem: Use lockdep_assert_held instead of spin_is_locked
authorAndi Kleen <ak@linux.intel.com>
Fri, 16 Mar 2012 19:00:57 +0000 (12:00 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Mar 2012 21:47:41 +0000 (14:47 -0700)
commitbc01caf53da4de53361376734707336de8fff839
tree408addf95b02ccfa53c7221df9310837ea0f94db
parent40ec6c542121ef85f5ba2e7d75968806009dcaf7
staging/zmem: Use lockdep_assert_held instead of spin_is_locked

WARN_ON(!spin_is_locked()) will always trigger on UP.
Use lockdep_assert_held instead.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/zcache/tmem.h