From: Christoph Hellwig Date: Mon, 10 Aug 2009 14:32:44 +0000 (-0300) Subject: xfs: fix spin_is_locked assert on uni-processor builds X-Git-Tag: MMI-PSA29.97-13-9~27165^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a8914f3a6d72c97328597a556a99daaf5cc288ae;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Reviewed-by: Eric Sandeen Reported-by: Johannes Engel Tested-by: Johannes Engel Signed-off-by: Felix Blyakher --- diff --git a/fs/xfs/xfs_log.c b/fs/xfs/xfs_log.c index 3750f04ede0b..9dbdff3ea484 100644 --- a/fs/xfs/xfs_log.c +++ b/fs/xfs/xfs_log.c @@ -3180,7 +3180,7 @@ try_again: STATIC void xlog_state_want_sync(xlog_t *log, xlog_in_core_t *iclog) { - ASSERT(spin_is_locked(&log->l_icloglock)); + assert_spin_locked(&log->l_icloglock); if (iclog->ic_state == XLOG_STATE_ACTIVE) { xlog_state_switch_iclogs(log, iclog, 0);