diff options
author | Alan Swanson <[email protected]> | 2017-03-17 18:05:43 +0000 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-03-18 14:32:57 +1100 |
commit | a7eb7984bf2ad0562c315c1d641561419c3f1ebe (patch) | |
tree | 5e4a827f8d9ef26b304b903bed99043da81448ad /src/gallium/drivers/nouveau | |
parent | bf8bc6190e79b4312da08a4a5e8f3c3ec129162f (diff) |
util/disk_cache: pass predicate functions file stats directly (v4)
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 <[email protected]>
Acked-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau')
0 files changed, 0 insertions, 0 deletions