Merge branch 'for-6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/dennis/percpu
authorLinus Torvalds <torvalds@linux-foundation.org>
Tue, 13 Dec 2022 00:07:04 +0000 (16:07 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 13 Dec 2022 00:07:04 +0000 (16:07 -0800)
Pull percpu updates from Dennis Zhou:
 "Baoquan was nice enough to run some clean ups for percpu"

* 'for-6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/dennis/percpu:
  mm/percpu: remove unused PERCPU_DYNAMIC_EARLY_SLOTS
  mm/percpu.c: remove the lcm code since block size is fixed at page size
  mm/percpu: replace the goto with break
  mm/percpu: add comment to state the empty populated pages accounting
  mm/percpu: Update the code comment when creating new chunk
  mm/percpu: use list_first_entry_or_null in pcpu_reclaim_populated()
  mm/percpu: remove unused pcpu_map_extend_chunks

1  2 
include/linux/percpu.h

index 3dbb6fb70658c300db7002673c87b75091cc169c,70bc17db00a6ef4732f34a932bbfd5c56e0566eb..1338ea2aa720c519ead81b9f4469eef369586ce3
  /*
   * Percpu allocator can serve percpu allocations before slab is
   * initialized which allows slab to depend on the percpu allocator.
-  * The following two parameters decide how much resource to
-  * preallocate for this.  Keep PERCPU_DYNAMIC_RESERVE equal to or
-  * larger than PERCPU_DYNAMIC_EARLY_SIZE.
+  * The following parameter decide how much resource to preallocate
+  * for this.  Keep PERCPU_DYNAMIC_RESERVE equal to or larger than
+  * PERCPU_DYNAMIC_EARLY_SIZE.
   */
- #define PERCPU_DYNAMIC_EARLY_SLOTS    128
 -#define PERCPU_DYNAMIC_EARLY_SIZE     (12 << 10)
 +#define PERCPU_DYNAMIC_EARLY_SIZE     (20 << 10)
  
  /*
   * PERCPU_DYNAMIC_RESERVE indicates the amount of free area to piggy