diff options
author | jeff <jeff@FreeBSD.org> | 2003-03-04 21:35:28 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2003-03-04 21:35:28 +0000 |
commit | bfd7640850e7f3731187d9e8ea20d26a62479418 (patch) | |
tree | 8f24f030f5f7fa3414701b598d675674911059a3 /etc/rc.d/virecover | |
parent | 1ec02223897c43798625b70595c5897706ddaf52 (diff) | |
download | FreeBSD-src-bfd7640850e7f3731187d9e8ea20d26a62479418.zip FreeBSD-src-bfd7640850e7f3731187d9e8ea20d26a62479418.tar.gz |
- Hold the buf lock while manipulating and inspecting its fields.
- Use gbincore() and not incore() so that we can drop the vnode interlock
as we acquire the buflock.
- Use GB_LOCK_NOWAIT when getting bufs for read ahead clusters so that we
don't block on locked bufs.
- Convert a while loop to a howmany() that will most likely be faster on
modern processors. There is another while loop divide that was left
near by because it is operating on a 64bit int and is most likely faster.
- Cleanup the cluster_read() code a little to get rid of a goto and make
the logic clearer.
Tested on: x86, alpha
Tested by: Steve Kargl <sgk@troutmask.apl.washington.edu>
Reviewd by: arch
Diffstat (limited to 'etc/rc.d/virecover')
0 files changed, 0 insertions, 0 deletions