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)
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>

No differences found