]> git.michaelhowe.org Git - packages/o/openafs.git/commit
vol: Check for blank vnode in VAllocVnode_r
authorAndrew Deason <adeason@sinenomine.net>
Fri, 25 Feb 2011 22:58:30 +0000 (16:58 -0600)
committerDerrick Brashear <shadow@dementia.org>
Tue, 8 Mar 2011 12:16:44 +0000 (04:16 -0800)
commit3260065941c65434c9124fb51559b0519e77fa9b
tree0a63454b70f6f4d5ae1ff8e421846f23b897a850
parentf90a3a5b19bb4a8da91f0cbbcb4957c2d8246bcf
vol: Check for blank vnode in VAllocVnode_r

When we alloc a vnode in VAllocVnode_r, we look up that vnode in the
vnode cache, to see if a vnode struct already exists for it. If it
doesn't, we check the vnode index to ensure that the vnode actually is
not in use (among other things). However, we do not perform the same
check for a vnode already in the cache. Add this check, to make sure
that we don't allocate an already-used vnode number, even if the
bitmap is screwed up.

Reviewed-on: http://gerrit.openafs.org/4060
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 974e95302a312c03cd735c0fdaa67fb02d254e26)

Change-Id: Ie75dc32c2a2c1ff05a96a1a14650e41ada07609d
Reviewed-on: http://gerrit.openafs.org/4170
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/vol/vnode.c