summaryrefslogtreecommitdiffstats
path: root/fs/ext4/ext4.h
diff options
context:
space:
mode:
authorVincent Minet <vincent@vincent-minet.net>2009-05-15 08:33:18 -0400
committerTheodore Ts'o <tytso@mit.edu>2009-05-15 08:33:18 -0400
commitbc8e67409ccdcff72c3f1656b1fb1aad7ff396db (patch)
tree2a766e3c7bc938b697499aa7d5a20f2f468b5a2f /fs/ext4/ext4.h
parent955ce5f5be67dfe0d1d096b543af33fe8a1ce3dd (diff)
downloadop-kernel-dev-bc8e67409ccdcff72c3f1656b1fb1aad7ff396db.zip
op-kernel-dev-bc8e67409ccdcff72c3f1656b1fb1aad7ff396db.tar.gz
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>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r--fs/ext4/ext4.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index 149e02d..89190ae 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -1583,12 +1583,6 @@ static inline void ext4_unlock_group(struct super_block *sb,
spin_unlock(ext4_group_lock_ptr(sb, group));
}
-static inline int ext4_is_group_locked(struct super_block *sb,
- ext4_group_t group)
-{
- return spin_is_locked(ext4_group_lock_ptr(sb, group));
-}
-
/*
* Inodes and files operations
*/
OpenPOWER on IntegriCloud