]> git.michaelhowe.org Git - packages/o/openafs.git/commit
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>
Mon, 28 Mar 2011 04:17:35 +0000 (21:17 -0700)
commit8f7ae330d6491dae015c52ae1a3cf0e2333a349b
tree7ed80a67a6c98c6921c69cbd82802681205ee224
parent3133fb26ed6730a735c09129a7097fa56630f07e
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.

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>
(cherry picked from commit 55781a831954cb1e7253a12e0f9b581b586c3603)

Change-Id: I184a7e0b0ac05361c491821bc6a3756db3e24221
Reviewed-on: http://gerrit.openafs.org/4352
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/viced/afsfileprocs.c