summaryrefslogtreecommitdiffstats
path: root/sys/fs/nullfs
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2009-05-31 14:57:43 +0000
committerkib <kib@FreeBSD.org>2009-05-31 14:57:43 +0000
commit443228ae3b3ba01eab22a02b6017cb6d8af64c34 (patch)
treee967370fdcc8de8ab496321c7238fa38b602185d /sys/fs/nullfs
parent0e1f2d3b3e4e791ad8dc69b5d3edfdbc1eca9771 (diff)
downloadFreeBSD-src-443228ae3b3ba01eab22a02b6017cb6d8af64c34.zip
FreeBSD-src-443228ae3b3ba01eab22a02b6017cb6d8af64c34.tar.gz
Eliminate code duplication in vn_fullpath1() around the cache lookups
and calls to vn_vptocnp() by moving more of the common code to vn_vptocnp(). Rename vn_vptocnp() to vn_vptocnp_locked() to signify that cache is locked around the call. Do not track buffer position by both the pointer and offset, use only buflen to record the start of the free space. Export vn_vptocnp() for external consumers as a wrapper around vn_vptocnp_locked() that locks the cache and handles hold counts. Tested by: pho
Diffstat (limited to 'sys/fs/nullfs')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud