]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Remove the global tempHeader/stuff structures
authorAndrew Deason <adeason@sinenomine.net>
Thu, 22 Apr 2010 22:09:18 +0000 (17:09 -0500)
committerStephan Wiesand <stephan.wiesand@desy.de>
Wed, 11 Sep 2013 21:21:47 +0000 (14:21 -0700)
commit9e9bce4b5ff987ce72a7923ca2d2765797d47f5b
treec0190f8799f7a233cfedf25a8c9fa53e30a7ec0b
parentf0ce80536adc9c6fa7b42286e999c325516695d3
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.

Reviewed-on: http://gerrit.openafs.org/1869
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit d8f2debce49a8a0eb310bdaf8ad0ee7601a0542e)

Change-Id: I1567e9184327b1cfa397b0bf37d611c2e8c2b8a1
Reviewed-on: http://gerrit.openafs.org/9409
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/vol/vol-salvage.c
src/vol/vol-salvage.h
src/vol/volinodes.h
src/vol/vutil.c