Remove the global tempHeader/stuff structures
authorAndrew Deason <adeason@sinenomine.net>
Thu, 22 Apr 2010 22:09:18 +0000 (17:09 -0500)
committerDerrick Brashear <shadow@dementia.org>
Thu, 19 Aug 2010 06:59:18 +0000 (23:59 -0700)
commitd8f2debce49a8a0eb310bdaf8ad0ee7601a0542e
tree69292bdcc4aecb5493886046b06ef137ea81c0f1
parent3d7388b790ef21de552ec60d379764df067ae421
Remove the global tempHeader/stuff structures

Currently, volinodes.h defines an array ('stuff') for easily accessing
information about different inode types. Part of the array points to
parts of a global 'tempHeader' structure, making this not threadsafe.
Change this into an interface which utilizes local storage to make
this threadsafe and remove those horridly-named global variables.

This adds the init_inode_info static inline function, for initializing
a local inode information table.

Change-Id: If4562e724fd7a8e5f8166ea0fe409d6765d0de2b
Reviewed-on: http://gerrit.openafs.org/1869
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/vol/vol-salvage.c
src/vol/vol-salvage.h
src/vol/volinodes.h
src/vol/vutil.c