[Mesa-dev] [PATCH] util/disk_cache: pass predicate functions file stats directly (v4)

Grazvydas Ignotas notasas at gmail.com
Fri Mar 17 22:16:01 UTC 2017


On Fri, Mar 17, 2017 at 8:05 PM, Alan Swanson <reiver at improbability.net> wrote:
> Since switching to LRU eviction the only user of these predicate
> functions now resolves directory entry stats itself so pass them
> directly saving calling fstat and strlen twice (and the
> expensive strlen is skipped entirely if access time is newer).
>
> v2: Update for empty cache dir detection changes
> v3: Fix passing string length to predicate with the +1 for NULL
>     termination and also pass sb as pointer
> v4: Missed ampersand for passing sb as pointer

Reviewed-by: Grazvydas Ignotas <notasas at gmail.com>


More information about the mesa-dev mailing list