From: Joonsoo Kim Date: Fri, 17 Jul 2015 23:24:20 +0000 (-0700) Subject: mm/cma_debug: fix debugging alloc/free interface X-Git-Tag: v4.2-rc3~11^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2292c0b1c4a24da54e29b3cf0645b4a4d9c3f2c7;p=profile%2Fcommon%2Fplatform%2Fkernel%2Flinux-artik7.git mm/cma_debug: fix debugging alloc/free interface CMA has alloc/free interface for debugging. It is intended that alloc/free occurs in specific CMA region, but, currently, alloc/free interface is on root dir due to the bug so we can't select CMA region where alloc/free happens. This patch fixes this problem by making alloc/free interface per CMA region. Signed-off-by: Joonsoo Kim Acked-by: Michal Nazarewicz Cc: Sasha Levin Cc: Stefan Strogin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/cma_debug.c b/mm/cma_debug.c index 7621ee3..22190a7 100644 --- a/mm/cma_debug.c +++ b/mm/cma_debug.c @@ -170,10 +170,10 @@ static void cma_debugfs_add_one(struct cma *cma, int idx) tmp = debugfs_create_dir(name, cma_debugfs_root); - debugfs_create_file("alloc", S_IWUSR, cma_debugfs_root, cma, + debugfs_create_file("alloc", S_IWUSR, tmp, cma, &cma_alloc_fops); - debugfs_create_file("free", S_IWUSR, cma_debugfs_root, cma, + debugfs_create_file("free", S_IWUSR, tmp, cma, &cma_free_fops); debugfs_create_file("base_pfn", S_IRUGO, tmp,