[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <lsq.1578512578.378705478@decadent.org.uk>
Date: Wed, 08 Jan 2020 19:43:29 +0000
From: Ben Hutchings <ben@...adent.org.uk>
To: linux-kernel@...r.kernel.org, stable@...r.kernel.org
CC: akpm@...ux-foundation.org, Denis Kirjanov <kda@...ux-powerpc.org>,
"Laura Abbott" <labbott@...hat.com>,
sprd-ind-kernel-group@...glegroups.com,
sanjeev.yadav@...eadtrum.com, "Arnd Bergmann" <arnd@...db.de>,
"Sumit Semwal" <sumit.semwal@...aro.org>,
"Colin Cross" <ccross@...roid.com>,
"Greg KH" <gregkh@...uxfoundation.org>,
"Rajmal Menariya" <rajmal.menariya@...eadtrum.com>,
"Android Kernel Team" <kernel-team@...roid.com>,
"John Stultz" <john.stultz@...aro.org>
Subject: [PATCH 3.16 31/63] staging: ion: Set minimum carveout heap
allocation order to PAGE_SHIFT
3.16.81-rc1 review patch. If anyone has any objections, please let me know.
------------------
From: Rajmal Menariya <rajmal.menariya@...eadtrum.com>
commit 1328d8efef17d5e16bd6e9cfe59130a833674534 upstream.
In carveout heap, change minimum allocation order from 12 to
PAGE_SHIFT. After this change each bit in bitmap (genalloc -
General purpose special memory pool) represents one page size
memory.
Cc: sprd-ind-kernel-group@...glegroups.com
Cc: sanjeev.yadav@...eadtrum.com
Cc: Colin Cross <ccross@...roid.com>
Cc: Android Kernel Team <kernel-team@...roid.com>
Cc: Greg KH <gregkh@...uxfoundation.org>
Cc: Sumit Semwal <sumit.semwal@...aro.org>
Signed-off-by: Rajmal Menariya <rajmal.menariya@...eadtrum.com>
[jstultz: Reworked commit message]
Signed-off-by: John Stultz <john.stultz@...aro.org>
Acked-by: Laura Abbott <labbott@...hat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: Arnd Bergmann <arnd@...db.de>
Signed-off-by: Ben Hutchings <ben@...adent.org.uk>
---
drivers/staging/android/ion/ion_carveout_heap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/staging/android/ion/ion_carveout_heap.c
+++ b/drivers/staging/android/ion/ion_carveout_heap.c
@@ -168,7 +168,7 @@ struct ion_heap *ion_carveout_heap_creat
if (!carveout_heap)
return ERR_PTR(-ENOMEM);
- carveout_heap->pool = gen_pool_create(12, -1);
+ carveout_heap->pool = gen_pool_create(PAGE_SHIFT, -1);
if (!carveout_heap->pool) {
kfree(carveout_heap);
return ERR_PTR(-ENOMEM);
Powered by blists - more mailing lists