]> git.michaelhowe.org Git - packages/o/openafs.git/commit
afs: fs getcacheparms miscounts zero-length dcaches
authorMark Vitale <mvitale@sinenomine.net>
Tue, 12 Jan 2016 22:50:36 +0000 (17:50 -0500)
committerStephan Wiesand <stephan.wiesand@desy.de>
Wed, 26 Apr 2017 15:00:13 +0000 (11:00 -0400)
commitbf222ca6ae9a36d246a0431b0244871637080a25
tree09b4b853322648601e01569f4a83938a3bf1e870
parenta1eac45d30d895b5d2e819637f6e50db5141ca59
afs: fs getcacheparms miscounts zero-length dcaches

When fs getcacheparms is issued with the -excessive option, it
tabulates all in-memory dcaches ("DCentries") by size.

dcaches with validPos == 0 were being tabulated in the 4k-16k bucket.

Fix the first comparison in the 'sieve' so these dcaches will be counted
in the correct 0-4k bucket instead.

Introduced by commit 176c2fddb95ced6c13e04e7492fc09b5551f273c

Reviewed-on: https://gerrit.openafs.org/12346
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
(cherry picked from commit c966c0b8414ef0a041b1a8d5261c9eccd4d39d99)

Change-Id: I53a20644f549550cef85f0cc6f3551ed5dbe1e23
Reviewed-on: https://gerrit.openafs.org/12604
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/afs/afs_pioctl.c