afs: Consolidate fheader initialization
authorAndrew Deason <adeason@sinenomine.net>
Wed, 24 Sep 2014 22:50:02 +0000 (17:50 -0500)
committerBenjamin Kaduk <kaduk@mit.edu>
Wed, 26 Nov 2014 20:45:31 +0000 (15:45 -0500)
commit8f2fa9d6393a958080387e8d84f6b8cd032b5ff8
tree2d5cf50e8a73739926bb138b989ce4f025624d18
parent0125d8c911faf0706667a1733fc086adae6decce
afs: Consolidate fheader initialization

We were initializing an afs_fheader structure in two different places,
with the same values. Consolidate these into a single function, so
updating the structure is easier. Also zero the whole structure, just
to make sure everything is initialized, even if the structure changes.

This commit should have no behavior impact; it is just code
reorganization.

Change-Id: If90757166d8490eaa053aa086c7b95349a62332e
Reviewed-on: http://gerrit.openafs.org/11510
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: Perry Ruiter <pruiter@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/afs/afs_dcache.c
src/afs/afs_init.c
src/afs/afs_prototypes.h