ext4: Convert ext4_lock_group to use sb_bgl_lock
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Sun, 3 May 2009 00:35:09 +0000 (20:35 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 3 May 2009 00:35:09 +0000 (20:35 -0400)
commit955ce5f5be67dfe0d1d096b543af33fe8a1ce3dd
tree68b0bdbef1594a3e43c1ef28ae8e096b40a06ae4
parenteefd7f03b86b8a319890e7fac5a6fcc7f8694b76
ext4: Convert ext4_lock_group to use sb_bgl_lock

We have sb_bgl_lock() and ext4_group_info.bb_state
bit spinlock to protech group information. The later is only
used within mballoc code. Consolidate them to use sb_bgl_lock().
This makes the mballoc.c code much simpler and also avoid
confusion with two locks protecting same info.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/balloc.c
fs/ext4/ext4.h
fs/ext4/ialloc.c
fs/ext4/mballoc.c
fs/ext4/super.c