]> 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)
committerJeffrey Altman <jaltman@openafs.org>
Fri, 5 Aug 2011 02:00:03 +0000 (19:00 -0700)
commit2bce3b50ef4fd9b9bdd03daf6e8332710f541922
treee53662b92be26da407493cf9fe5a6be0c5bfb226
parent4111ee2374d030e1f3bb1fa3530f2877f2576d07
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.

Change-Id: Ia2089fb9b47dab77abc0911ab009e5aed75ed848
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>
src/WINNT/afsd/cm_btree.c