Re: [patch 02/41] cpu alloc: The allocator

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrew Morton
Date: Thursday, May 29, 2008 - 9:58 pm

On Thu, 29 May 2008 20:56:22 -0700 Christoph Lameter <clameter@sgi.com> wrote:


strange choice of a default?  I guess it makes it clear that there's no
particular advantage in making it a power-of-two or anything like that.


Perhaps it should return UNIT_TYPE? (ugh).

I guess there's no need to ever change that type, so no?


Would be nicer to move these above size_to_units(), IMO.


bitmap_fill()?


bitmap_zero()?


Should be kerneldoc, I guess.


OK, so we reuse ZERO_SIZE_PTR from kmalloc.


This is kinda bitmap_find_free_region(), only bitmap_find_free_region()
isn't quite strong enough.

Generally I think it would have been better if you had added new
primitives to the bitmap library (or enhanced existing ones) and used
them here, rather than implementing private functionality.


If this assertion triggers for someone, you'll wish like hell that it
had been implemented as three separate BUG_ONs.


eek, a major interface function which is ALL IN CAPS!

can we do this in lower-case?  In a C function?


Dittoes.


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 02/41] cpu alloc: The allocator, Christoph Lameter, (Thu May 29, 8:56 pm)
Re: [patch 02/41] cpu alloc: The allocator, Andrew Morton, (Thu May 29, 9:58 pm)
Re: [patch 02/41] cpu alloc: The allocator, Eric Dumazet, (Thu May 29, 10:04 pm)
Re: [patch 02/41] cpu alloc: The allocator, Christoph Lameter, (Thu May 29, 10:10 pm)
Re: [patch 02/41] cpu alloc: The allocator, Christoph Lameter, (Thu May 29, 10:20 pm)
Re: [patch 02/41] cpu alloc: The allocator, Andrew Morton, (Thu May 29, 10:31 pm)
Re: [patch 02/41] cpu alloc: The allocator, Rusty Russell, (Thu May 29, 10:46 pm)
Re: [patch 02/41] cpu alloc: The allocator, Rusty Russell, (Thu May 29, 10:52 pm)
Re: [patch 02/41] cpu alloc: The allocator, Eric Dumazet, (Thu May 29, 10:54 pm)
Re: [patch 02/41] cpu alloc: The allocator, KAMEZAWA Hiroyuki, (Thu May 29, 10:56 pm)
Re: [patch 02/41] cpu alloc: The allocator, Christoph Lameter, (Thu May 29, 11:16 pm)
Re: [patch 02/41] cpu alloc: The allocator, Pavel Machek, (Sat May 31, 1:58 pm)
Re: [patch 02/41] cpu alloc: The allocator, Paul Jackson, (Mon Jun 2, 2:29 am)
Re: [patch 02/41] cpu alloc: The allocator, Mike Travis, (Wed Jun 4, 7:48 am)
Re: [patch 02/41] cpu alloc: The allocator, Mike Travis, (Wed Jun 4, 7:58 am)
Re: [patch 02/41] cpu alloc: The allocator, Mike Travis, (Wed Jun 4, 8:04 am)
Re: [patch 02/41] cpu alloc: The allocator, Eric Dumazet, (Wed Jun 4, 8:11 am)
Re: [patch 02/41] cpu alloc: The allocator, Mike Travis, (Wed Jun 4, 8:30 am)
Re: [patch 02/41] cpu alloc: The allocator, Rusty Russell, (Thu Jun 5, 4:48 pm)
Re: [patch 02/41] cpu alloc: The allocator, Rusty Russell, (Thu Jun 5, 5:32 pm)
Re: [patch 02/41] cpu alloc: The allocator, Christoph Lameter, (Tue Jun 10, 10:33 am)
Re: [patch 02/41] cpu alloc: The allocator, Christoph Lameter, (Tue Jun 10, 10:34 am)
Re: [patch 02/41] cpu alloc: The allocator, Eric Dumazet, (Tue Jun 10, 11:05 am)
Re: [patch 02/41] cpu alloc: The allocator, Christoph Lameter, (Tue Jun 10, 11:28 am)