From 5c29603f502d83955f87be7385e0323a43e1ee2c Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Tue, 16 Dec 2014 08:11:21 +0100 Subject: [PATCH] kernel: remove obsolete comment regarding Mntcache size in */main.c --- sys/src/9/alphapc/main.c | 3 +-- sys/src/9/bcm/main.c | 3 +-- sys/src/9/kw/main.c | 3 +-- sys/src/9/mtx/main.c | 3 +-- sys/src/9/omap/main.c | 3 +-- sys/src/9/pc/main.c | 3 +-- sys/src/9/pc64/main.c | 3 +-- sys/src/9/port/cache.c | 4 ++-- sys/src/9/ppc/main.c | 3 +-- sys/src/9/teg2/main.c | 3 +-- sys/src/9/xen/main.c | 3 +-- 11 files changed, 12 insertions(+), 22 deletions(-) diff --git a/sys/src/9/alphapc/main.c b/sys/src/9/alphapc/main.c index 8cfd6e2e1..0ac133dfe 100644 --- a/sys/src/9/alphapc/main.c +++ b/sys/src/9/alphapc/main.c @@ -533,8 +533,7 @@ confinit(void) /* * Guess how much is taken by the large permanent - * datastructures. Mntcache and Mntrpc are not accounted for - * (probably ~300KB). + * datastructures. Mntcache and Mntrpc are not accounted for. */ kpages *= BY2PG; kpages -= conf.upages*sizeof(Page) diff --git a/sys/src/9/bcm/main.c b/sys/src/9/bcm/main.c index c6f03c164..d5fbdd1ee 100644 --- a/sys/src/9/bcm/main.c +++ b/sys/src/9/bcm/main.c @@ -502,8 +502,7 @@ confinit(void) /* * Guess how much is taken by the large permanent - * datastructures. Mntcache and Mntrpc are not accounted for - * (probably ~300KB). + * datastructures. Mntcache and Mntrpc are not accounted for. */ kpages = conf.npage - conf.upages; kpages *= BY2PG; diff --git a/sys/src/9/kw/main.c b/sys/src/9/kw/main.c index ed8aa6d3b..aa722a0eb 100644 --- a/sys/src/9/kw/main.c +++ b/sys/src/9/kw/main.c @@ -658,8 +658,7 @@ confinit(void) /* * Guess how much is taken by the large permanent - * datastructures. Mntcache and Mntrpc are not accounted for - * (probably ~300KB). + * datastructures. Mntcache and Mntrpc are not accounted for. */ kpages = conf.npage - conf.upages; kpages *= BY2PG; diff --git a/sys/src/9/mtx/main.c b/sys/src/9/mtx/main.c index ee1665fbe..7cb1bad16 100644 --- a/sys/src/9/mtx/main.c +++ b/sys/src/9/mtx/main.c @@ -346,8 +346,7 @@ confinit(void) /* * Guess how much is taken by the large permanent - * datastructures. Mntcache and Mntrpc are not accounted for - * (probably ~300KB). + * datastructures. Mntcache and Mntrpc are not accounted for. */ kpages *= BY2PG; kpages -= conf.upages*sizeof(Page) diff --git a/sys/src/9/omap/main.c b/sys/src/9/omap/main.c index cadd5bff7..b54a08d52 100644 --- a/sys/src/9/omap/main.c +++ b/sys/src/9/omap/main.c @@ -667,8 +667,7 @@ confinit(void) /* * Guess how much is taken by the large permanent - * datastructures. Mntcache and Mntrpc are not accounted for - * (probably ~300KB). + * datastructures. Mntcache and Mntrpc are not accounted for. */ kpages = conf.npage - conf.upages; kpages *= BY2PG; diff --git a/sys/src/9/pc/main.c b/sys/src/9/pc/main.c index 2f2e9d04c..b82a6db9e 100644 --- a/sys/src/9/pc/main.c +++ b/sys/src/9/pc/main.c @@ -491,8 +491,7 @@ confinit(void) /* * Guess how much is taken by the large permanent - * datastructures. Mntcache and Mntrpc are not accounted for - * (probably ~300KB). + * datastructures. Mntcache and Mntrpc are not accounted for. */ kpages *= BY2PG; kpages -= conf.upages*sizeof(Page) diff --git a/sys/src/9/pc64/main.c b/sys/src/9/pc64/main.c index 14a786605..20a209e77 100644 --- a/sys/src/9/pc64/main.c +++ b/sys/src/9/pc64/main.c @@ -228,8 +228,7 @@ confinit(void) /* * Guess how much is taken by the large permanent - * datastructures. Mntcache and Mntrpc are not accounted for - * (probably ~300KB). + * datastructures. Mntcache and Mntrpc are not accounted for. */ kpages *= BY2PG; kpages -= conf.nproc*sizeof(Proc) diff --git a/sys/src/9/port/cache.c b/sys/src/9/port/cache.c index 702fa94d5..a64088abf 100644 --- a/sys/src/9/port/cache.c +++ b/sys/src/9/port/cache.c @@ -51,11 +51,11 @@ cinit(void) int i; Mntcache *m; - cache.alloc = xalloc(sizeof(Mntcache)*NFILE); - m = cache.alloc; + m = xalloc(sizeof(Mntcache)*NFILE); if (m == nil) panic("cinit: no memory"); + cache.alloc = m; cache.head = m; for(i = 0; i < NFILE-1; i++) { diff --git a/sys/src/9/ppc/main.c b/sys/src/9/ppc/main.c index 9c6c4ea4c..a77f31127 100644 --- a/sys/src/9/ppc/main.c +++ b/sys/src/9/ppc/main.c @@ -407,8 +407,7 @@ confinit(void) /* * Guess how much is taken by the large permanent - * datastructures. Mntcache and Mntrpc are not accounted for - * (probably ~300KB). + * datastructures. Mntcache and Mntrpc are not accounted for. */ kpages *= BY2PG; kpages -= conf.upages*sizeof(Page) diff --git a/sys/src/9/teg2/main.c b/sys/src/9/teg2/main.c index 1c2abe8fa..36100669e 100644 --- a/sys/src/9/teg2/main.c +++ b/sys/src/9/teg2/main.c @@ -901,8 +901,7 @@ confinit(void) /* * Guess how much is taken by the large permanent - * datastructures. Mntcache and Mntrpc are not accounted for - * (probably ~300KB). + * datastructures. Mntcache and Mntrpc are not accounted for. */ kpages = conf.npage - conf.upages; kpages *= BY2PG; diff --git a/sys/src/9/xen/main.c b/sys/src/9/xen/main.c index 32c2d83dc..54ce7d765 100644 --- a/sys/src/9/xen/main.c +++ b/sys/src/9/xen/main.c @@ -424,8 +424,7 @@ confinit(void) /* * Guess how much is taken by the large permanent - * datastructures. Mntcache and Mntrpc are not accounted for - * (probably ~300KB). + * datastructures. Mntcache and Mntrpc are not accounted for. */ kpages *= BY2PG; kpages -= conf.upages*sizeof(Page)