disk_cache: create new helper for writing cache items to disk
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 5 Aug 2020 04:21:24 +0000 (14:21 +1000)
committerMarge Bot <eric+marge@anholt.net>
Fri, 11 Sep 2020 06:03:58 +0000 (06:03 +0000)
commit593ef166aed12114d98afae81fcf75c363dc4582
tree051ef6b455108de34f7da99b892cda6aa1225825
parentb4a3a80403e6cfe428c17257dc6ba85f1bdbfa02
disk_cache: create new helper for writing cache items to disk

This pulls out the cache item writing code from cache_put() into
a new helper. In this patch we also move various functions called
by this code into the new disk_cache_os.c file.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6197>
src/util/disk_cache.c
src/util/disk_cache_os.c
src/util/disk_cache_os.h