]> git.michaelhowe.org Git - packages/o/openafs.git/commit
afs: Fix VLRU traversal sanity check
authorAndrew Deason <adeason@sinenomine.net>
Fri, 16 Nov 2012 20:18:32 +0000 (14:18 -0600)
committerStephan Wiesand <stephan.wiesand@desy.de>
Thu, 6 Dec 2012 17:43:24 +0000 (09:43 -0800)
commit14657f6bacb3607dc20d1846202744d2f6e83daf
tree2a12086840db3d80294581c4d4835da8ffdd53b1
parent0776f5dadd9ee38940ccaf1287342884e8b318c8
afs: Fix VLRU traversal sanity check

On non-Linux, the number of vcaches in the VLRU can easily exceed
afs_maxvcount, since we allocate new vcaches when we run out. So,
assume we only have afs_vcount vcaches on the VLRU, instead of
assuming we have at most afs_maxvcount vcaches.

Reviewed-on: http://gerrit.openafs.org/8471
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
(cherry picked from commit bc6dd95016c63d0742698d902aebf73c01162c24)

Change-Id: Id4884e45a52813eb33926958b11148a021ca3057
Reviewed-on: http://gerrit.openafs.org/8606
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Paul Smeddle <paul.smeddle@gmail.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
Tested-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/afs/afs_vcache.c