|
@@ -2104,7 +2104,7 @@ static void *cgroup_tasks_start(struct seq_file *s, loff_t *pos)
|
|
down_read(&cgrp->pids_mutex);
|
|
down_read(&cgrp->pids_mutex);
|
|
if (pid) {
|
|
if (pid) {
|
|
int end = cgrp->pids_length;
|
|
int end = cgrp->pids_length;
|
|
- int i;
|
|
|
|
|
|
+
|
|
while (index < end) {
|
|
while (index < end) {
|
|
int mid = (index + end) / 2;
|
|
int mid = (index + end) / 2;
|
|
if (cgrp->tasks_pids[mid] == pid) {
|
|
if (cgrp->tasks_pids[mid] == pid) {
|