diff options
author | Joonsoo Kim <js1304@gmail.com> | 2015-07-17 19:24:20 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-07-17 19:39:54 -0400 |
commit | 2292c0b1c4a24da54e29b3cf0645b4a4d9c3f2c7 (patch) | |
tree | 908a19a770be67c07b38d1b6f7730b33c02f17d7 | |
parent | e2cfc91120fa01e3458167054af993fb83d7d0ec (diff) |
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 <iamjoonsoo.kim@lge.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Cc: Sasha Levin <sasha.levin@oracle.com>
Cc: Stefan Strogin <stefan.strogin@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | mm/cma_debug.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/cma_debug.c b/mm/cma_debug.c index 7621ee34daa0..22190a7fd58e 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) | |||
170 | 170 | ||
171 | tmp = debugfs_create_dir(name, cma_debugfs_root); | 171 | tmp = debugfs_create_dir(name, cma_debugfs_root); |
172 | 172 | ||
173 | debugfs_create_file("alloc", S_IWUSR, cma_debugfs_root, cma, | 173 | debugfs_create_file("alloc", S_IWUSR, tmp, cma, |
174 | &cma_alloc_fops); | 174 | &cma_alloc_fops); |
175 | 175 | ||
176 | debugfs_create_file("free", S_IWUSR, cma_debugfs_root, cma, | 176 | debugfs_create_file("free", S_IWUSR, tmp, cma, |
177 | &cma_free_fops); | 177 | &cma_free_fops); |
178 | 178 | ||
179 | debugfs_create_file("base_pfn", S_IRUGO, tmp, | 179 | debugfs_create_file("base_pfn", S_IRUGO, tmp, |