ref: 5c29603f502d83955f87be7385e0323a43e1ee2c
parent: 8309f15c3669d684da7c3fe2b6748f9362e1cc38
author: cinap_lenrek <[email protected]>
date: Tue Dec 16 03:11:21 EST 2014
kernel: remove obsolete comment regarding Mntcache size in */main.c
--- a/sys/src/9/alphapc/main.c
+++ b/sys/src/9/alphapc/main.c
@@ -533,8 +533,7 @@
/*
* 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)
--- a/sys/src/9/bcm/main.c
+++ b/sys/src/9/bcm/main.c
@@ -502,8 +502,7 @@
/*
* 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;
--- a/sys/src/9/kw/main.c
+++ b/sys/src/9/kw/main.c
@@ -658,8 +658,7 @@
/*
* 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;
--- a/sys/src/9/mtx/main.c
+++ b/sys/src/9/mtx/main.c
@@ -346,8 +346,7 @@
/*
* 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)
--- a/sys/src/9/omap/main.c
+++ b/sys/src/9/omap/main.c
@@ -667,8 +667,7 @@
/*
* 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;
--- a/sys/src/9/pc/main.c
+++ b/sys/src/9/pc/main.c
@@ -491,8 +491,7 @@
/*
* 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)
--- a/sys/src/9/pc64/main.c
+++ b/sys/src/9/pc64/main.c
@@ -228,8 +228,7 @@
/*
* 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)
--- a/sys/src/9/port/cache.c
+++ b/sys/src/9/port/cache.c
@@ -51,11 +51,11 @@
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++) {
--- a/sys/src/9/ppc/main.c
+++ b/sys/src/9/ppc/main.c
@@ -407,8 +407,7 @@
/*
* 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)
--- a/sys/src/9/teg2/main.c
+++ b/sys/src/9/teg2/main.c
@@ -901,8 +901,7 @@
/*
* 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;
--- a/sys/src/9/xen/main.c
+++ b/sys/src/9/xen/main.c
@@ -424,8 +424,7 @@
/*
* 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)