list_for_each_entry_safe(b, t, &bc->freeable, list) {
touched++;
- if (freed >= nr)
+ if (touched >= nr)
break;
if (++i > 3 &&
list_for_each_entry_safe(b, t, &bc->live, list) {
touched++;
- if (freed >= nr) {
+ if (touched >= nr) {
/* Save position */
if (&t->list != &bc->live)
list_move_tail(&bc->live, &t->list);