[lkml]   [2006]   [Aug]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH 5/6] BC: kernel memory accounting (core)
    Oleg Nesterov wrote:
    > On 08/23, Kirill Korotaev wrote:
    >>+int bc_slab_charge(kmem_cache_t *cachep, void *objp, gfp_t flags)
    >>+ unsigned int size;
    >>+ struct beancounter *bc, **slab_bcp;
    >>+ bc = get_exec_bc();
    >>+ if (bc == NULL)
    >>+ return 0;
    > Is it possible to .exec_bc == NULL ?
    > If yes, why do we need init_bc? We can do 'set_exec_bc(NULL)' in __do_IRQ()
    > instead.
    no, exec_bc can't be NULL. thanks for catching old hunks which historically exist
    due to old times when host system was not accounted (bc was NULL).

    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: 2006-08-25 12:09    [W:0.029 / U:22.856 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site