viced: REALLYCLOSE origfdP after CoW
authorAndrew Deason <adeason@sinenomine.net>
Fri, 25 Mar 2011 20:54:01 +0000 (15:54 -0500)
committerDerrick Brashear <shadow@dementia.org>
Sat, 26 Mar 2011 15:24:56 +0000 (08:24 -0700)
commit55781a831954cb1e7253a12e0f9b581b586c3603
tree23fdc53c97019d5519c235639ae93c8c6c3f1212
parentfa86aee76a3bf73d20771c24a3448b04cb6db932
viced: REALLYCLOSE origfdP after CoW

In StoreData_RXStyle, we save a pointer to the original FdHandle_t if
we need to CopyOnWrite the target vnode, for the purposes of possibly
copying additional data later on.

After the CopyOnWrite call, this points to an inode that is not in the
current volume, and is thus less likely to be accessed. In CopyOnWrite
itself, the original file handle is FDH_REALLYCLOSE'd because of this,
so the handle does not remain in the cache. Do the same in
StoreData_RXStyle, so origfdP is always FDH_REALLYCLOSE'd after we
have called CopyOnWrite.

Change-Id: Ibe33d26120eb354318147f3a31fe32d38c6a70c6
Reviewed-on: http://gerrit.openafs.org/4344
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/viced/afsfileprocs.c