summaryrefslogtreecommitdiff
path: root/mm/cma.h
diff options
context:
space:
mode:
authorLaura Abbott <labbott@redhat.com>2017-04-18 21:27:03 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-04-18 21:41:12 +0300
commitf318dd083c8128c50e48ceb8c3e812e52800fc4f (patch)
tree29d2a27dbc996aac1413457a89832df22aae7da0 /mm/cma.h
parentdf47c0a638b07dab18b202b307506e4b86b02e9a (diff)
downloadlinux-f318dd083c8128c50e48ceb8c3e812e52800fc4f.tar.xz
cma: Store a name in the cma structure
Frameworks that may want to enumerate CMA heaps (e.g. Ion) will find it useful to have an explicit name attached to each region. Store the name in each CMA structure. Signed-off-by: Laura Abbott <labbott@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm/cma.h')
-rw-r--r--mm/cma.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/cma.h b/mm/cma.h
index 17c75a4246c8..49861286279d 100644
--- a/mm/cma.h
+++ b/mm/cma.h
@@ -11,6 +11,7 @@ struct cma {
struct hlist_head mem_head;
spinlock_t mem_head_lock;
#endif
+ const char *name;
};
extern struct cma cma_areas[MAX_CMA_AREAS];