lkml.org 
[lkml]   [2010]   [May]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 21/25] lmb: Add "start" argument to lmb_find_base()
From
Date
On Mon, 2010-05-10 at 16:37 -0700, Yinghai Lu wrote:

> > if (lmbsize < size)
> > continue;
> > - base = min(lmbbase + lmbsize, max_addr);
> > - res_base = lmb_find_region(lmbbase, base, size, align);
> > - if (res_base != LMB_ERROR)
> > - return res_base;
> > + if ((lmbbase + lmbsize) <= start)
> > + break;
> > + bottom = max(lmbbase, start);
> > + top = min(lmbbase + lmbsize, end);
> > + if (bottom >= top)
> > + continue;
> > + found = lmb_find_region(lmbbase, top, size, align);
> ^^^^^^^^^
> should use bottom here

Correct, I missed that when converting.

Cheers,
Ben.




\
 
 \ /
  Last update: 2010-05-12 10:11    [W:0.802 / U:0.480 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site