SLUB: slabinfo fallback from /sys/kernel/slab to /sys/slab 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 for for any kernel. Signed-off-by: Christoph Lameter --- Documentation/vm/slabinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6.24-rc6-mm1/Documentation/vm/slabinfo.c =================================================================== --- linux-2.6.24-rc6-mm1.orig/Documentation/vm/slabinfo.c 2008-01-09 22:50:05.154296789 -0800 +++ linux-2.6.24-rc6-mm1/Documentation/vm/slabinfo.c 2008-01-09 22:51:13.455644570 -0800 @@ -1040,7 +1040,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(".");