summaryrefslogtreecommitdiffstats
path: root/usr.bin/diff/diff.c
diff options
context:
space:
mode:
authorthib <thib@openbsd.org>2007-09-10 20:59:00 +0000
committerthib <thib@openbsd.org>2007-09-10 20:59:00 +0000
commit0a5721f7215e2096a487805e5b4d52aa4454a651 (patch)
treee81a0e17acd37e3896a548170e0e7402ae523149 /usr.bin/diff/diff.c
parentLock the vnode in ffs_unmount() before passing it too vinvalbuf() (diff)
downloadwireguard-openbsd-0a5721f7215e2096a487805e5b4d52aa4454a651.tar.xz
wireguard-openbsd-0a5721f7215e2096a487805e5b4d52aa4454a651.zip
When selecting cylinder groups as candidates for new directory creation
make sure that theres a minimum amount of free blocks in that cylinder group by tweaking the minbfree calculation. Without this, cylinder groups with no free blocks could be chosen which resaults in expensive searches for free blocks each time a new file is created in the directory. Tweak the calculation of minifree (minimum free inodes) in the same way. Also decrease the maxcontigdirs as the file system fills up to lessen the chance of directory clusters overflowing the available space in the cylinder group. From FreeBSD (Rev 1.116 of sys/ufs/ffs/ffs_alloc.c); ok miod@
Diffstat (limited to 'usr.bin/diff/diff.c')
0 files changed, 0 insertions, 0 deletions