Message ID | ac8f92701003250824q6aeeac4cw55cb0d913e5a3bd3@mail.gmail.com |
---|---|
State | New, archived |
Headers | show |
--- linux-2.6.32/fs/ext4/mballoc.c 2009-12-03 11:51:22.000000000 +0800 +++ ext4_mm_leak/mballoc-11-1.c 2010-03-25 23:06:00.000000000 +0800 @@ -3633,7 +3633,7 @@ repeat: spin_lock(&pa->pa_lock); if (atomic_read(&pa->pa_count)) { spin_unlock(&pa->pa_lock); - busy = 1; + busy += 1; continue; } if (pa->pa_deleted) { @@ -3654,7 +3654,7 @@ repeat: } /* if we still need more blocks and some PAs were used, try again */ - if (free < needed && busy) { + if (free < needed && needed <= free + busy) { busy = 0; ext4_unlock_group(sb, group); /*