| 1959 | } |
| 1960 | |
| 1961 | static size_t estimate_cache_size(size_t ondisk_size, unsigned int entries) |
| 1962 | { |
| 1963 | long per_entry = sizeof(struct cache_entry) - sizeof(struct ondisk_cache_entry); |
| 1964 | |
| 1965 | /* |
| 1966 | * Account for potential alignment differences. |
| 1967 | */ |
| 1968 | per_entry += align_padding_size(per_entry, 0); |
| 1969 | return ondisk_size + entries * per_entry; |
| 1970 | } |
| 1971 | |
| 1972 | struct index_entry_offset |
| 1973 | { |
no outgoing calls
no test coverage detected