[PATCH 7/8] mm/percpu: remove unused PERCPU_DYNAMIC_EARLY_SLOTS

Baoquan He posted 8 patches 3 years, 5 months ago
[PATCH 7/8] mm/percpu: remove unused PERCPU_DYNAMIC_EARLY_SLOTS
Posted by Baoquan He 3 years, 5 months ago
Since commit 40064aeca35c ("percpu: replace area map allocator with
bitmap"), there's no place to use PERCPU_DYNAMIC_EARLY_SLOTS. So
clean it up.

Signed-off-by: Baoquan He <bhe@redhat.com>
---
 include/linux/percpu.h | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/include/linux/percpu.h b/include/linux/percpu.h
index f1ec5ad1351c..70bc17db00a6 100644
--- a/include/linux/percpu.h
+++ b/include/linux/percpu.h
@@ -37,11 +37,10 @@
 /*
  * 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)
 
 /*
-- 
2.34.1
Re: [PATCH 7/8] mm/percpu: remove unused PERCPU_DYNAMIC_EARLY_SLOTS
Posted by Dennis Zhou 3 years, 5 months ago
On Mon, Oct 24, 2022 at 04:14:34PM +0800, Baoquan He wrote:
> Since commit 40064aeca35c ("percpu: replace area map allocator with
> bitmap"), there's no place to use PERCPU_DYNAMIC_EARLY_SLOTS. So
> clean it up.
> 
> Signed-off-by: Baoquan He <bhe@redhat.com>
> ---
>  include/linux/percpu.h | 7 +++----
>  1 file changed, 3 insertions(+), 4 deletions(-)
> 
> diff --git a/include/linux/percpu.h b/include/linux/percpu.h
> index f1ec5ad1351c..70bc17db00a6 100644
> --- a/include/linux/percpu.h
> +++ b/include/linux/percpu.h
> @@ -37,11 +37,10 @@
>  /*
>   * 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)
>  
>  /*
> -- 
> 2.34.1
> 

Acked-by: Dennis Zhou <dennis@kernel.org>

Thanks,
Dennis