Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern bump the limit on max item size for pool_init()/poo...



details:   https://anonhg.NetBSD.org/src/rev/dc2949afb94d
branches:  trunk
changeset: 973090:dc2949afb94d
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Fri Jun 19 13:49:38 2020 +0000

description:
bump the limit on max item size for pool_init()/pool_cache_init() up
to 1 << 24, so that the pools can be used for ZFS block allocations, which
are up to SPA_MAXBLOCKSHIFT (1 << 24)

part of PR kern/55397 by Frank Kardel

diffstat:

 sys/kern/subr_pool.c |  24 ++++++++++++++++++++++--
 1 files changed, 22 insertions(+), 2 deletions(-)

diffs (45 lines):

diff -r dc943f6c390a -r dc2949afb94d sys/kern/subr_pool.c
--- a/sys/kern/subr_pool.c      Fri Jun 19 12:38:53 2020 +0000
+++ b/sys/kern/subr_pool.c      Fri Jun 19 13:49:38 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_pool.c,v 1.272 2020/06/14 23:17:01 ad Exp $       */
+/*     $NetBSD: subr_pool.c,v 1.273 2020/06/19 13:49:38 jdolecek Exp $ */
 
 /*
  * Copyright (c) 1997, 1999, 2000, 2002, 2007, 2008, 2010, 2014, 2015, 2018,
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_pool.c,v 1.272 2020/06/14 23:17:01 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_pool.c,v 1.273 2020/06/19 13:49:38 jdolecek Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ddb.h"
@@ -223,6 +223,26 @@
                .pa_alloc = pool_page_alloc,
                .pa_free = pool_page_free,
                .pa_pagesz = 1 << (POOL_ALLOCATOR_BIG_BASE + 7),
+       },
+       {
+               .pa_alloc = pool_page_alloc,
+               .pa_free = pool_page_free,
+               .pa_pagesz = 1 << (POOL_ALLOCATOR_BIG_BASE + 8),
+       },
+       {
+               .pa_alloc = pool_page_alloc,
+               .pa_free = pool_page_free,
+               .pa_pagesz = 1 << (POOL_ALLOCATOR_BIG_BASE + 9),
+       },
+       {
+               .pa_alloc = pool_page_alloc,
+               .pa_free = pool_page_free,
+               .pa_pagesz = 1 << (POOL_ALLOCATOR_BIG_BASE + 10),
+       },
+       {
+               .pa_alloc = pool_page_alloc,
+               .pa_free = pool_page_free,
+               .pa_pagesz = 1 << (POOL_ALLOCATOR_BIG_BASE + 11),
        }
 };
 



Home | Main Index | Thread Index | Old Index