Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b0beab50 authored by Sheng Yong's avatar Sheng Yong Committed by Jaegeuk Kim
Browse files

f2fs: use parameter max_items instead of PIDVEC_SIZE

parent 3d6a650f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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) {
	radix_tree_for_each_slot(slot, &pids, &iter, first_index) {
		results[ret] = iter.index;
		results[ret] = iter.index;
		if (++ret == PIDVEC_SIZE)
		if (++ret == max_items)
			break;
			break;
	}
	}
	return ret;
	return ret;