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    [W:0.018 / U:152.532 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site