diff options
author | iedowse <iedowse@FreeBSD.org> | 2001-07-13 20:50:38 +0000 |
---|---|---|
committer | iedowse <iedowse@FreeBSD.org> | 2001-07-13 20:50:38 +0000 |
commit | 991ee425934fead0e7232cabef1dee2a966dc689 (patch) | |
tree | b3e9a65b6a6af2212cc302dcbc397a50e3e52ca8 /contrib | |
parent | a110615d801b5bbff9ce7817c401a98a8953caac (diff) | |
download | FreeBSD-src-991ee425934fead0e7232cabef1dee2a966dc689.zip FreeBSD-src-991ee425934fead0e7232cabef1dee2a966dc689.tar.gz |
Return a locked struct buf from ufsdirhash_lookup() to avoid one
extra getblk/brelse sequence for each lookup. We already had this
buf in ufsdirhash_lookup(), so there was no point in brelse'ing it
only to have the caller immediately reaquire the same buffer.
This should make the case of sequential lookups marginally faster;
in my tests, sequential lookups with dirhash enabled are now only
around 1% slower than without dirhash.
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions