patch-1.3.57 linux/fs/file_table.c

Next file: linux/fs/inode.c
Previous file: linux/fs/exec.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.56/linux/fs/file_table.c linux/fs/file_table.c
@@ -16,6 +16,7 @@
  */
 struct file * first_file = NULL;
 int nr_files = 0;
+int max_files = NR_FILE;
 
 /*
  * Insert a new file structure at the head of the list of available ones.
@@ -116,7 +117,7 @@
 				f->f_version = ++event;
 				return f;
 			}
-	} while (nr_files < NR_FILE && grow_files());
+	} while (nr_files < max_files && grow_files());
 
 	return NULL;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this