Eliminate dead code. (The commit message for revision 1.287 explains why

this code is dead.)
This commit is contained in:
Alan Cox 2008-07-20 04:13:51 +00:00
parent b1bc0b2a86
commit 14e69e48b8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=180625

View File

@ -481,19 +481,6 @@ kern_vfs_bio_buffer_alloc(caddr_t v, long physmem_est)
nbuf = maxbuf;
}
#if 0
/*
* Do not allow the buffer_map to be more then 1/2 the size of the
* kernel_map.
*/
if (nbuf > (kernel_map->max_offset - kernel_map->min_offset) /
(BKVASIZE * 2)) {
nbuf = (kernel_map->max_offset - kernel_map->min_offset) /
(BKVASIZE * 2);
printf("Warning: nbufs capped at %d\n", nbuf);
}
#endif
/*
* swbufs are used as temporary holders for I/O, such as paging I/O.
* We have no less then 16 and no more then 256.