nr_files in linux-2.4.0-test2

From: Chris Mason (mason@suse.com)
Date: Sun Jun 25 2000 - 15:25:15 EST


Hello,

Looks as though nr_files in fs/file_table.c is not being initialized
anymore, on my box it is starting at a large negative number. So, was
this supposed to be zero filled elsewhere, or do we just need the
following patch?

-chris

--- diff/linux-2.4.0-test2/fs/file_table.c Tue Jun 20 10:55:37 2000
+++ linux/fs/file_table.c Sun Jun 25 16:28:40 2000
@@ -16,8 +16,8 @@
 static kmem_cache_t *filp_cache;
 
 /* sysctl tunables... */
-int nr_files; /* read only */
-int nr_free_files; /* read only */
+int nr_files = 0 ; /* read only */
+int nr_free_files = 0 ; /* read only */
 int max_files = NR_FILE;/* tunable */
 
 /* Here the new files go */

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jun 26 2000 - 21:00:07 EST