afs: Refactor GetDSlot parameters
authorAndrew Deason <adeason@sinenomine.net>
Tue, 30 Apr 2013 22:32:26 +0000 (17:32 -0500)
committerDaria Brashear <shadow@your-file-system.com>
Wed, 14 Jan 2015 15:27:20 +0000 (10:27 -0500)
commit0c89335b5aa7ae3582862596878936dfcbe99bf1
tree3aaf620dd2c85da25d823023aea3144d60191c2c
parentd61cb9ad764115811fcca3dd0a735ecad1d6eac4
afs: Refactor GetDSlot parameters

The 'indexvalid' and 'datavalid' parameters were really representing 3
different scenarios, not 2 different values with 2 possibilities each.
Change these to a single parameter, 'type', with 3 different values:
DSLOT_NEW, DSLOT_UNUSED, and DSLOT_VALID. Hopefully this will make the
relevant code paths easier to understand.

This should incur no functional change; it is just code
reorganization.

Change-Id: Iac921e74532de89121b461fa0f53ddb778735e0c
Reviewed-on: http://gerrit.openafs.org/9834
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Chas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
Reviewed-by: Daria Brashear <shadow@your-file-system.com>
src/afs/afs_chunkops.h
src/afs/afs_dcache.c
src/afs/afs_prototypes.h