ext4: Fix spinlock assertions on UP systems
commitbc8e67409ccdcff72c3f1656b1fb1aad7ff396db
authorVincent Minet <vincent@vincent-minet.net>
Fri, 15 May 2009 12:33:18 +0000 (15 08:33 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 15 May 2009 12:33:18 +0000 (15 08:33 -0400)
tree2a766e3c7bc938b697499aa7d5a20f2f468b5a2f
parent955ce5f5be67dfe0d1d096b543af33fe8a1ce3dd
ext4: Fix spinlock assertions on UP systems

On UP systems without DEBUG_SPINLOCK, ext4_is_group_locked always fails
which triggers a BUG_ON() call.
This patch fixes it by using assert_spin_locked instead.

Signed-off-by: Vincent Minet <vincent@vincent-minet.net>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/ext4.h
fs/ext4/mballoc.c