Skip to content

Commit

Permalink
mm/cma_debug: fix debugging alloc/free interface
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Michal Nazarewicz <[email protected]>
Cc: Sasha Levin <[email protected]>
Cc: Stefan Strogin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
JoonsooKim authored and torvalds committed Jul 17, 2015
1 parent e2cfc91 commit 2292c0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mm/cma_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2292c0b

Please sign in to comment.