FBSD: Add osi_fbsd_checkinuse
authorAndrew Deason <adeason@sinenomine.net>
Sun, 20 May 2012 22:05:12 +0000 (17:05 -0500)
committerDerrick Brashear <shadow@dementix.org>
Wed, 27 Jun 2012 12:32:23 +0000 (05:32 -0700)
commita3ef19e1995a1d3d05c8f3b2decf4301359d8375
tree3af70dcc7514ad2bf68ca6c11462c3d71cc3c465
parentdda5cc0c5f7172aa4edf58c0f876c8bf05590889
FBSD: Add osi_fbsd_checkinuse

Add the osi_fbsd_checkinuse function, which contains code common to
the FreeBSD osi_TryEvictVCache and osi_VM_FlushVCache. Implement the
latter two in terms of osi_fbsd_checkinuse.

This commit should incur no behavior changes. This is just a
reorganization so future commits can change the implementations of
osi_TryEvictVCache and osi_VM_FlushVCache.

Change-Id: I42df9d6efb7b573bd933d0bf04924f668a3608da
Reviewed-on: http://gerrit.openafs.org/7432
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
src/afs/FBSD/osi_misc.c
src/afs/FBSD/osi_prototypes.h
src/afs/FBSD/osi_vcache.c
src/afs/FBSD/osi_vm.c