OpenAFS Master Repository branch, master, updated. BP-openafs-stable-1_8_x-536-g48fbb45

Gerrit Code Review gerrit@openafs.org
Fri, 6 Mar 2020 11:59:46 -0500


The following commit has been merged in the master branch:
commit 48fbb45967381f10df092a1ec18b5fb820387e05
Author: Andrew Deason <adeason@sinenomine.net>
Date:   Fri Sep 20 14:19:23 2019 -0500

    opr: Introduce opr_cache
    
    Add a simple general-purpose in-memory cache implementation, called
    opr_cache. Keys and values are simple flat opaque buffers (no complex
    nested structures allowed), hashing is done with jhash, and cache
    eviction is mostly random with some LRU bias.
    
    Partly based off a different implementation by
    mbarbosa@sinenomine.net.
    
    Change-Id: I16b5988947ff603dfe31613cd7be3908a69264e5
    Reviewed-on: https://gerrit.openafs.org/13884
    Tested-by: BuildBot <buildbot@rampaginggeek.com>
    Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>

 src/opr/Makefile.in   |    2 +-
 src/opr/NTMakefile    |    1 +
 src/opr/cache.c       |  432 +++++++++++++++++++++++++++++++++++++++++++++++++
 src/opr/opr.h         |   18 ++
 tests/TESTS           |    1 +
 tests/opr/Makefile.in |    6 +-
 tests/opr/cache-t.c   |  247 ++++++++++++++++++++++++++++
 7 files changed, 705 insertions(+), 2 deletions(-)

-- 
OpenAFS Master Repository