xfs: fix spin_is_locked assert on uni-processor builds

Without SMP or preemption spin_is_locked always returns false,
so we can't do an assert with it. Instead use assert_spin_locked,
which does the right thing on all builds.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
Reported-by: Johannes Engel <jcnengel@googlemail.com>
Tested-by: Johannes Engel <jcnengel@googlemail.com>
Signed-off-by: Felix Blyakher <felixb@sgi.com>

authored by Christoph Hellwig and committed by Felix Blyakher a8914f3a b89d4208

+1 -1
+1 -1
fs/xfs/xfs_log.c
··· 3180 3180 STATIC void 3181 3181 xlog_state_want_sync(xlog_t *log, xlog_in_core_t *iclog) 3182 3182 { 3183 - ASSERT(spin_is_locked(&log->l_icloglock)); 3183 + assert_spin_locked(&log->l_icloglock); 3184 3184 3185 3185 if (iclog->ic_state == XLOG_STATE_ACTIVE) { 3186 3186 xlog_state_switch_iclogs(log, iclog, 0);