[freenos] [freenos commit] r163 - Corrected the calculation of the size variable in ProcRootDirectory.

  • From: codesite-noreply@xxxxxxxxxx
  • To: freenos@xxxxxxxxxxxxx
  • Date: Sun, 28 Jun 2009 14:28:17 +0000

Author: nieklinnenbank
Date: Sun Jun 28 07:26:21 2009
New Revision: 163

Modified:
   trunk/srv/filesystem/proc/ProcRootDirectory.cpp

Log:
Corrected the calculation of the size variable in ProcRootDirectory.


Modified: trunk/srv/filesystem/proc/ProcRootDirectory.cpp
==============================================================================
--- trunk/srv/filesystem/proc/ProcRootDirectory.cpp     (original)
+++ trunk/srv/filesystem/proc/ProcRootDirectory.cpp     Sun Jun 28 07:26:21 2009
@@ -21,7 +21,7 @@
 ProcRootDirectory::ProcRootDirectory(ProcFileSystem *p)
     : proc(p)
 {
- size = /* MAX_PROCS */ 64 * sizeof(Dirent); // TODO: we must fix PoolAllocator to NOT pre-allocate huge areas.
+    size = MAX_PROCS * sizeof(Dirent);
 }

 Error ProcRootDirectory::read(FileSystemMessage *msg)

Other related posts:

  • » [freenos] [freenos commit] r163 - Corrected the calculation of the size variable in ProcRootDirectory. - codesite-noreply