]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Windows: after dir enum adjust dir scache LRU
authorJeffrey Altman <jaltman@your-file-system.com>
Thu, 4 Aug 2011 21:08:45 +0000 (17:08 -0400)
committerDerrick Brashear <shadow@dementia.org>
Fri, 12 Aug 2011 15:56:05 +0000 (08:56 -0700)
commitb631ff9b93737d0452b024421c236379fc92b8c8
treebc0708ebca4518e3ec41a11c6fc712bf4b42cf40
parent758c5867bafcce658c79cf193b061ce7b77f5523
Windows: after dir enum adjust dir scache LRU

During a directory enumeration the directory scache object
is reference counted so it can't be recycled.  However, if
there are more directory entries than the maximum number
of cached scache objects the directory scache object will
end up being the next object to be recycled after the refcount
is dropped.  Since the directory is clearly a hot object, before
dropping the reference, adjust the scache LRU position so that
it is the last object to be recycled.

Fix the variable name for the directory scache to be 'dscp'
for consistency.

Reviewed-on: http://gerrit.openafs.org/5158
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
(cherry picked from commit 2bce3b50ef4fd9b9bdd03daf6e8332710f541922)

Change-Id: Ie4400d769a7ac2d0bfed3ccebe02760619bb76b2
Reviewed-on: http://gerrit.openafs.org/5208
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/WINNT/afsd/cm_btree.c