ext4: Clarify the locking details in mballoc
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Thu, 10 Sep 2009 03:50:17 +0000 (23:50 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 10 Sep 2009 03:50:17 +0000 (23:50 -0400)
commit08c3a8133810d955d97f7146c50c43e4073f2148
tree7caab5e454cdfc39817bd34b9a5be21743af5771
parentf41c0750538667b87a19c93952e5d42fcc069bd7
ext4: Clarify the locking details in mballoc

We don't need to take the alloc_sem lock when we are adding new
groups, since mballoc won't see the new group added until we bump
sbi->s_groups_count.

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