lkml.org 
[lkml]   [2008]   [Apr]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] generic pool allocator: allow all chunks to be allocated.
On Wed, Apr 16, 2008 at 06:33:10AM -0600, Duck wrote:
> From: Bruce Schmid <duck@freescale.com>
>
> gen_pool_alloc() doesn't allocate the last chunk in a pool.
> This patch fixes that problem by correcting the calculation
> of the number of the last bit in the bitmap.

Indeed it doesn't allocate the last bit. I ran a quick test
with and without your patch and your patch does fix the problem.

Acked-by: Dean Nelson <dcn@sgi.com>



\
 
 \ /
  Last update: 2008-04-16 16:37    [W:0.049 / U:0.420 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site