kernel: remove obsolete comment regarding Mntcache size in */main.c
This commit is contained in:
parent
8309f15c36
commit
5c29603f50
11 changed files with 12 additions and 22 deletions
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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++) {
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue