lkml.org 
[lkml]   [2008]   [Feb]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 02/11] slabinfo: fall back from /sys/kernel/slab to /sys/slab
    Date
    From: Christoph Lameter <clameter@sgi.com>

    I keep running upstream and mm kernels and the location of the slab
    directory is different since upstream still uses /sys/slab. This patch
    makes slabinfo check /sys/slab if /sys/kernel/slab is not there. Makes
    slabinfo work on any kernel.

    Signed-off-by: Christoph Lameter <clameter@sgi.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
    ---
    Documentation/vm/slabinfo.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/Documentation/vm/slabinfo.c b/Documentation/vm/slabinfo.c
    index 7123fee..22d7e3e 100644
    --- a/Documentation/vm/slabinfo.c
    +++ b/Documentation/vm/slabinfo.c
    @@ -1123,7 +1123,7 @@ void read_slab_dir(void)
    char *t;
    int count;

    - if (chdir("/sys/kernel/slab"))
    + if (chdir("/sys/kernel/slab") && chdir("/sys/slab"))
    fatal("SYSFS support for SLUB not active\n");

    dir = opendir(".");
    --
    1.5.4


    \
     
     \ /
      Last update: 2008-02-22 00:53    [W:0.048 / U:29.624 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site