Use fewer #ifdefs for dynamic vcaches
authorSimon Wilkinson <sxw@inf.ed.ac.uk>
Mon, 26 Oct 2009 19:52:48 +0000 (19:52 +0000)
committerDerrick Brashear <shadow|account-1000005@unknown>
Mon, 26 Oct 2009 23:37:03 +0000 (16:37 -0700)
commitbea4c4ea5d563bebe9f9c6289a1f25fd016a01a4
tree12e97d75da73d001b1688fb8d61e0c857e05ce20
parentd769b27694b4ab6d3fba23c6121238b311bd82d6
Use fewer #ifdefs for dynamic vcaches

When we're not in AFS_MAXVCOUNT_ENV, make afsd_dynamic_vcaches a
static 0, which allows the removal of a scattering of #ifdef's in
the middle of conditionals in afs_vcache.c, and generally improves
the code browsing experience.

Also, move the externs for this variable to afs.h, where they belong,
and fix related formatting.

Change-Id: I4d56ebae63fe1855ac80f8511b9fc76f7e5a326f
Reviewed-on: http://gerrit.openafs.org/741
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/afs/afs.h
src/afs/afs_daemons.c
src/afs/afs_init.c
src/afs/afs_vcache.c