lkml.org 
[lkml]   [2008]   [Jun]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] vmallocinfo: Add NUMA informations
On Wed, 4 Jun 2008, Eric Dumazet wrote:

> - return seq_open(file, &vmalloc_op);
> + unsigned int *ptr = NULL;
> + int ret;
> +
> + if (NUMA_BUILD)
> + ptr = kmalloc(nr_node_ids * sizeof(unsigned int), GFP_KERNEL);

Maybe a bit of overkill here. nr_node_ids == 1 in the !NUMA case which
should not do much harm if you alloc the struct anymore.



\
 
 \ /
  Last update: 2008-06-09 16:27    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site