ext4: fix hot spins in mballoc after err_freebuddy and err_freemeta
authorRoel Kluin <12o3l@tiscali.nl>
Wed, 30 Apr 2008 02:01:15 +0000 (22:01 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 30 Apr 2008 02:01:15 +0000 (22:01 -0400)
commitf1fa3342e271029f93d323ca664809b94594fe04
treea157efee03b64049dda19f4292961e085949cc81
parentf8a87d89304c1eea8e4a8dc02d134f57590913c6
ext4: fix hot spins in mballoc after err_freebuddy and err_freemeta

In ext4_mb_init_backend() 'i' is of type ext4_group_t. Since unsigned, i
>= 0 is always true, so fix hot spins after err_freebuddy: and -meta:
and prevent decrements when zero.

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Signed-off-by: Mingming Cao <cmm@us.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/mballoc.c