[PATCH] Bugfix: read-cache.c:write_cache() misrecords number of entries.