]> git.michaelhowe.org Git - packages/o/openafs.git/commit
libafs: Abstract the Linux lru cache interface
authorCheyenne Wills <cwills@sinenomine.net>
Fri, 15 May 2020 16:39:53 +0000 (10:39 -0600)
committerStephan Wiesand <stephan.wiesand@desy.de>
Fri, 12 Jun 2020 15:39:15 +0000 (11:39 -0400)
commit81581b362af86b4f636d8e411e9cb8f1cf86f723
tree327b6dbb415767e88543047c0655f35fbaf8c4e0
parent8db1ef3eee67e40643eaf017a62d7f2c23473e9b
libafs: Abstract the Linux lru cache interface

Define static functions afs_lru_cache_init, afs_lru_cache_add and
afs_lru_cache_finalize to handle interfacing with Linux's lru
facilities.

This change's primary purpose is to isolate the preprocessor
conditionals associated with the details of the system lru interfaces to
just these functions and to simplify the areas that utilize lru caching
by removing the preprocessor conditionals.

As Linux's lru facilities change, additional conditional code will be
needed.

Reviewed-on: https://gerrit.openafs.org/14167
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
(cherry picked from commit dca95bcb7efdff38564dcff3e8f4189735f13b3a)

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