Thread (6 messages) flat view 6 messages, 2 authors, 2022-01-17

Re: [PATCH v2 1/2] mm/cma: provide option to opt out from exposing pages on activation failure

From: Hari Bathini <hbathini@linux.ibm.com>
Date: 2022-01-17 08:00:13
Also in: linux-mm

On 13/01/22 2:00 pm, David Hildenbrand wrote:
quoted
+{
+	if (!cma)
+		return;
Do we really need that check for NULL?
Probably not.
quoted
+
+	cma->reserve_pages_on_error = true;
+}
+
  /**
   * cma_init_reserved_mem() - create custom contiguous area from reserved memory
   * @base: Base address of the reserved area
@@ -204,6 +214,7 @@ int __init cma_init_reserved_mem(phys_addr_t base, phys_addr_t size,
  	cma->base_pfn = PFN_DOWN(base);
  	cma->count = size >> PAGE_SHIFT;
  	cma->order_per_bit = order_per_bit;
+	cma->reserve_pages_on_error = false;
I think you can drop that; should already be initialized to 0.


Apart from that

Reviewed-by: David Hildenbrand <redacted>
Thanks for the review, David.
Posted v3 with the changes suggested above.

- Hari
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help