[lkml]   [2012]   [Jun]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Is this code right in zram?
    On 06/04/2012 02:33 PM, Joe Perches wrote:
    > On Mon, 2012-06-04 at 14:08 +0200, Jerome Marchand wrote:
    >> It probably doesn't matter much.
    > Likely true.
    >> Apparently kcalloc() never got a lot
    >> of success and kzalloc(sizeof(foo) * num_foos) type of allocation are
    >> more popular.
    > Likely false, especially in new code.
    > If you did greps, perhaps you are including the
    > k.alloc(sizeof(*foo), GFP)
    > forms in your uses multiply counts.

    No. Actually I greped it and look quickly at which proportion of those
    kzalloc() looked like the above. I have to admit that my sample was
    small and certainly not evenly distributed around the source tree.


    > --
    > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    > the body of a message to
    > More majordomo info at
    > Please read the FAQ at

     \ /
      Last update: 2012-06-04 15:21    [W:0.027 / U:142.992 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site