]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - mm/percpu-vm.c
mm/memory_hotplug: introduce "auto-movable" online policy
[mirror_ubuntu-jammy-kernel.git] / mm / percpu-vm.c
index ee5d89fcd66f2f9f6ab305806b64588f2456c8e0..2054c9213c43391ea58c6fd8260b52890518e9ef 100644 (file)
@@ -303,6 +303,9 @@ static int pcpu_populate_chunk(struct pcpu_chunk *chunk,
  * For each cpu, depopulate and unmap pages [@page_start,@page_end)
  * from @chunk.
  *
+ * Caller is required to call pcpu_post_unmap_tlb_flush() if not returning the
+ * region back to vmalloc() which will lazily flush the tlb.
+ *
  * CONTEXT:
  * pcpu_alloc_mutex.
  */
@@ -324,8 +327,6 @@ static void pcpu_depopulate_chunk(struct pcpu_chunk *chunk,
 
        pcpu_unmap_pages(chunk, pages, page_start, page_end);
 
-       /* no need to flush tlb, vmalloc will handle it lazily */
-
        pcpu_free_pages(chunk, pages, page_start, page_end);
 }