X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fxfs%2Fsupport%2Fdebug.c;h=7d6e1f37df10d88c621be9363f6c865d81decd02;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=2e5a3e97b41eec7d984d6ad84c13bebd9a636908;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/fs/xfs/support/debug.c b/fs/xfs/support/debug.c index 2e5a3e97b..7d6e1f37d 100644 --- a/fs/xfs/support/debug.c +++ b/fs/xfs/support/debug.c @@ -38,7 +38,7 @@ int doass = 1; static char message[256]; /* keep it off the stack */ -static spinlock_t xfs_err_lock = SPIN_LOCK_UNLOCKED; +static DEFINE_SPINLOCK(xfs_err_lock); /* Translate from CE_FOO to KERN_FOO, err_level(CE_FOO) == KERN_FOO */ #define XFS_MAX_ERR_LEVEL 7