lkml.org 
[lkml]   [2008]   [Sep]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Re: [PATCH] cgroup(fix critical bug): new handling for tasks file
On Mon, Sep 8, 2008 at 1:19 AM, Lai Jiangshan <laijs@cn.fujitsu.com> wrote:
>
>> + while (index < end) {
>> + int mid = (index + end) / 2;
>> + if (cgrp->tasks_pids[mid] == pid) {
>> + index = mid;
>> + break;
>> + } else if (cgrp->tasks_pids[mid] <= pid)
>
> (cgrp->tasks_pids[mid] <= pid) ===> (cgrp->tasks_pids[mid] < pid)

Given the "if" test directly above, those two are equivalent.

Paul


\
 
 \ /
  Last update: 2008-09-08 17:45    [W:0.086 / U:0.576 seconds]
©2003-2014 Jasper Spaans. Advertise on this site