[libbsd 17/22] Move bio_transient_maxcnt
Sebastian Huber
sebastian.huber at embedded-brains.de
Fri Jun 24 06:33:45 UTC 2022
rtems_bsd_initialize() should initialize the bare minimum.
Update #4475.
---
freebsd/sys/kern/vfs_bio.c | 3 +++
rtemsbsd/rtems/rtems-kernel-init.c | 2 --
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/freebsd/sys/kern/vfs_bio.c b/freebsd/sys/kern/vfs_bio.c
index 50e87ff8..1177b907 100644
--- a/freebsd/sys/kern/vfs_bio.c
+++ b/freebsd/sys/kern/vfs_bio.c
@@ -94,6 +94,9 @@ __FBSDID("$FreeBSD$");
#endif /* __rtems__ */
#include <rtems/bsd/local/opt_swap.h>
+#ifdef __rtems__
+int bio_transient_maxcnt = 1024;
+#endif /* __rtems__ */
static MALLOC_DEFINE(M_BIOBUF, "biobuf", "BIO buffer");
struct bio_ops bioops; /* I/O operation notification */
diff --git a/rtemsbsd/rtems/rtems-kernel-init.c b/rtemsbsd/rtems/rtems-kernel-init.c
index 305010b1..11c1861b 100644
--- a/rtemsbsd/rtems/rtems-kernel-init.c
+++ b/rtemsbsd/rtems/rtems-kernel-init.c
@@ -111,7 +111,6 @@ int ngroups_max;
int unmapped_buf_allowed;
caddr_t unmapped_base;
long maxbcache;
-int bio_transient_maxcnt;
struct sx allproc_lock;
struct vmem *rtems_bsd_transient_arena;
int nbuf; /* The number of buffer headers */
@@ -208,7 +207,6 @@ rtems_bsd_initialize(void)
sbt_timethreshold = bttosbt(bt_timethreshold);
sbt_tickthreshold = bttosbt(bt_tickthreshold);
maxid_maxcpus = (int)rtems_scheduler_get_processor_maximum();
- bio_transient_maxcnt = 1024;
sx_init(&allproc_lock, "allproc");
maxproc = 16;
--
2.35.3
More information about the devel
mailing list