Re: [Mesa-dev] [PATCH 2/2] disk_cache: use block size rather than file size

2017-04-27 Thread Grazvydas Ignotas
On Thu, Apr 27, 2017 at 1:26 PM, Grazvydas Ignotas wrote: > On Thu, Apr 27, 2017 at 4:15 AM, Timothy Arceri > wrote: > >> diff --git a/src/util/disk_cache.c b/src/util/disk_cache.c >> index 9fd7b96..2764017 100644 >> --- a/src/util/disk_cache.c >> +++ b/src/util/disk_cache.c >> @@ -525,21 +525,2

Re: [Mesa-dev] [PATCH 2/2] disk_cache: use block size rather than file size

2017-04-27 Thread Grazvydas Ignotas
On Thu, Apr 27, 2017 at 4:15 AM, Timothy Arceri wrote: > The majority of cache files are less than 1kb this resulted in us > greatly miscalculating the amount of disk space used by the cache. > > Using the number of blocks allocated to the file is more > conservative and less likely to cause issu

Re: [Mesa-dev] [PATCH 2/2] disk_cache: use block size rather than file size

2017-04-26 Thread Michel Dänzer
On 27/04/17 10:15 AM, Timothy Arceri wrote: > The majority of cache files are less than 1kb this resulted in us > greatly miscalculating the amount of disk space used by the cache. > > Using the number of blocks allocated to the file is more > conservative and less likely to cause issues. > > Thi

[Mesa-dev] [PATCH 2/2] disk_cache: use block size rather than file size

2017-04-26 Thread Timothy Arceri
The majority of cache files are less than 1kb this resulted in us greatly miscalculating the amount of disk space used by the cache. Using the number of blocks allocated to the file is more conservative and less likely to cause issues. This change will result in cache sizes being miscalculated fu