diff --git a/fs/f2fs/trace.c b/fs/f2fs/trace.c index 73b4e1d1912a7ff7370c1c6f2d649b770ed70acc..c82ab4048127b8cfbb8b2d35a996b9e154f3dcaf 100644 --- a/fs/f2fs/trace.c +++ b/fs/f2fs/trace.c @@ -138,7 +138,7 @@ static unsigned int gang_lookup_pids(pid_t *results, unsigned long first_index, radix_tree_for_each_slot(slot, &pids, &iter, first_index) { results[ret] = iter.index; - if (++ret == PIDVEC_SIZE) + if (++ret == max_items) break; } return ret;