changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: kernel: remove obsolete comment regarding Mntcache size in */main.c

changeset 4074: a7cf12962171
parent 4073: 9aec9c9b7c4b
child 4075: b6292375af6b
author: cinap_lenrek@felloff.net
date: Tue, 16 Dec 2014 08:11:21 +0100
files: sys/src/9/alphapc/main.c sys/src/9/bcm/main.c sys/src/9/kw/main.c sys/src/9/mtx/main.c sys/src/9/omap/main.c sys/src/9/pc/main.c sys/src/9/pc64/main.c sys/src/9/port/cache.c sys/src/9/ppc/main.c sys/src/9/teg2/main.c sys/src/9/xen/main.c
description: kernel: remove obsolete comment regarding Mntcache size in */main.c
     1.1--- a/sys/src/9/alphapc/main.c
     1.2+++ b/sys/src/9/alphapc/main.c
     1.3@@ -533,8 +533,7 @@ confinit(void)
     1.4 
     1.5 	/*
     1.6 	 * Guess how much is taken by the large permanent
     1.7-	 * datastructures. Mntcache and Mntrpc are not accounted for
     1.8-	 * (probably ~300KB).
     1.9+	 * datastructures. Mntcache and Mntrpc are not accounted for.
    1.10 	 */
    1.11 	kpages *= BY2PG;
    1.12 	kpages -= conf.upages*sizeof(Page)
     2.1--- a/sys/src/9/bcm/main.c
     2.2+++ b/sys/src/9/bcm/main.c
     2.3@@ -502,8 +502,7 @@ confinit(void)
     2.4 
     2.5 	/*
     2.6 	 * Guess how much is taken by the large permanent
     2.7-	 * datastructures. Mntcache and Mntrpc are not accounted for
     2.8-	 * (probably ~300KB).
     2.9+	 * datastructures. Mntcache and Mntrpc are not accounted for.
    2.10 	 */
    2.11 	kpages = conf.npage - conf.upages;
    2.12 	kpages *= BY2PG;
     3.1--- a/sys/src/9/kw/main.c
     3.2+++ b/sys/src/9/kw/main.c
     3.3@@ -658,8 +658,7 @@ confinit(void)
     3.4 
     3.5 	/*
     3.6 	 * Guess how much is taken by the large permanent
     3.7-	 * datastructures. Mntcache and Mntrpc are not accounted for
     3.8-	 * (probably ~300KB).
     3.9+	 * datastructures. Mntcache and Mntrpc are not accounted for.
    3.10 	 */
    3.11 	kpages = conf.npage - conf.upages;
    3.12 	kpages *= BY2PG;
     4.1--- a/sys/src/9/mtx/main.c
     4.2+++ b/sys/src/9/mtx/main.c
     4.3@@ -346,8 +346,7 @@ confinit(void)
     4.4 
     4.5 	/*
     4.6 	 * Guess how much is taken by the large permanent
     4.7-	 * datastructures. Mntcache and Mntrpc are not accounted for
     4.8-	 * (probably ~300KB).
     4.9+	 * datastructures. Mntcache and Mntrpc are not accounted for.
    4.10 	 */
    4.11 	kpages *= BY2PG;
    4.12 	kpages -= conf.upages*sizeof(Page)
     5.1--- a/sys/src/9/omap/main.c
     5.2+++ b/sys/src/9/omap/main.c
     5.3@@ -667,8 +667,7 @@ confinit(void)
     5.4 
     5.5 	/*
     5.6 	 * Guess how much is taken by the large permanent
     5.7-	 * datastructures. Mntcache and Mntrpc are not accounted for
     5.8-	 * (probably ~300KB).
     5.9+	 * datastructures. Mntcache and Mntrpc are not accounted for.
    5.10 	 */
    5.11 	kpages = conf.npage - conf.upages;
    5.12 	kpages *= BY2PG;
     6.1--- a/sys/src/9/pc/main.c
     6.2+++ b/sys/src/9/pc/main.c
     6.3@@ -491,8 +491,7 @@ confinit(void)
     6.4 
     6.5 	/*
     6.6 	 * Guess how much is taken by the large permanent
     6.7-	 * datastructures. Mntcache and Mntrpc are not accounted for
     6.8-	 * (probably ~300KB).
     6.9+	 * datastructures. Mntcache and Mntrpc are not accounted for.
    6.10 	 */
    6.11 	kpages *= BY2PG;
    6.12 	kpages -= conf.upages*sizeof(Page)
     7.1--- a/sys/src/9/pc64/main.c
     7.2+++ b/sys/src/9/pc64/main.c
     7.3@@ -228,8 +228,7 @@ confinit(void)
     7.4 
     7.5 	/*
     7.6 	 * Guess how much is taken by the large permanent
     7.7-	 * datastructures. Mntcache and Mntrpc are not accounted for
     7.8-	 * (probably ~300KB).
     7.9+	 * datastructures. Mntcache and Mntrpc are not accounted for.
    7.10 	 */
    7.11 	kpages *= BY2PG;
    7.12 	kpages -= conf.nproc*sizeof(Proc)
     8.1--- a/sys/src/9/port/cache.c
     8.2+++ b/sys/src/9/port/cache.c
     8.3@@ -51,11 +51,11 @@ cinit(void)
     8.4 	int i;
     8.5 	Mntcache *m;
     8.6 
     8.7-	cache.alloc = xalloc(sizeof(Mntcache)*NFILE);
     8.8-	m = cache.alloc;
     8.9+	m = xalloc(sizeof(Mntcache)*NFILE);
    8.10 	if (m == nil)
    8.11 		panic("cinit: no memory");
    8.12 
    8.13+	cache.alloc = m;
    8.14 	cache.head = m;
    8.15 
    8.16 	for(i = 0; i < NFILE-1; i++) {
     9.1--- a/sys/src/9/ppc/main.c
     9.2+++ b/sys/src/9/ppc/main.c
     9.3@@ -407,8 +407,7 @@ confinit(void)
     9.4 
     9.5 	/*
     9.6 	 * Guess how much is taken by the large permanent
     9.7-	 * datastructures. Mntcache and Mntrpc are not accounted for
     9.8-	 * (probably ~300KB).
     9.9+	 * datastructures. Mntcache and Mntrpc are not accounted for.
    9.10 	 */
    9.11 	kpages *= BY2PG;
    9.12 	kpages -= conf.upages*sizeof(Page)
    10.1--- a/sys/src/9/teg2/main.c
    10.2+++ b/sys/src/9/teg2/main.c
    10.3@@ -901,8 +901,7 @@ confinit(void)
    10.4 
    10.5 	/*
    10.6 	 * Guess how much is taken by the large permanent
    10.7-	 * datastructures. Mntcache and Mntrpc are not accounted for
    10.8-	 * (probably ~300KB).
    10.9+	 * datastructures. Mntcache and Mntrpc are not accounted for.
   10.10 	 */
   10.11 	kpages = conf.npage - conf.upages;
   10.12 	kpages *= BY2PG;
    11.1--- a/sys/src/9/xen/main.c
    11.2+++ b/sys/src/9/xen/main.c
    11.3@@ -424,8 +424,7 @@ confinit(void)
    11.4 
    11.5 	/*
    11.6 	 * Guess how much is taken by the large permanent
    11.7-	 * datastructures. Mntcache and Mntrpc are not accounted for
    11.8-	 * (probably ~300KB).
    11.9+	 * datastructures. Mntcache and Mntrpc are not accounted for.
   11.10 	 */
   11.11 	kpages *= BY2PG;
   11.12 	kpages -= conf.upages*sizeof(Page)