lkml.org 
[lkml]   [2009]   [Sep]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [RFC][PATCH 1/2] percpu array counter like vmstat
    On Wed, 30 Sep 2009 19:09:43 +0900
    KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> wrote:

    > +int array_counter_init(struct array_counter *ac, int size)
    > +{
    > + ac->v.elements = size;
    > + ac->v.counters = alloc_percpu(s8);
    This is a bug, of course...
    should be
    ac->v.counters = __alloc_percpu(size, __alignof__(char));

    Regads,
    -Kame



    \
     
     \ /
      Last update: 2009-10-01 01:37    [W:0.023 / U:60.520 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site