Dag-Erling Smørgrav d09dfa2bfd Two minor optimizations of fdalloc():
- if minfd < fd_freefile (as is most often the case, since minfd is
   usually 0), set it to fd_freefile.

 - remove a call to fd_first_free() which duplicates work already done
   by fdused().

This change results in a small but measurable speedup for processes
with large numbers (several thousands) of open files.

PR:		kern/85176
Submitted by:	Divacky Roman <xdivac02@stud.fit.vutbr.cz>
MFC after:	3 weeks
2005-08-26 11:16:39 +00:00
..
2005-07-08 15:06:58 +00:00
2005-06-30 19:01:26 +00:00
2005-08-19 22:30:13 +00:00
2005-04-12 05:45:58 +00:00
2005-03-26 20:04:28 +00:00
2005-05-06 02:50:00 +00:00
2005-03-14 06:51:29 +00:00
2005-07-08 15:06:58 +00:00