Lines Matching refs:address
72 bool LoadStats(BackendImpl* backend, Addr address, OnDiskStats* stats) {
73 MappedFile* file = backend->File(address);
77 size_t offset = address.start_block() * address.BlockSize() +
95 bool StoreStats(BackendImpl* backend, Addr address, OnDiskStats* stats) {
96 MappedFile* file = backend->File(address);
100 size_t offset = address.start_block() * address.BlockSize() +
105 bool CreateStats(BackendImpl* backend, Addr* address, OnDiskStats* stats) {
106 if (!backend->CreateBlock(BLOCK_256, 2, address))
116 return StoreStats(backend, *address, stats);
127 Addr address(*storage_addr);
128 if (address.is_initialized()) {
129 if (!LoadStats(backend, address, &stats))
132 if (!CreateStats(backend, &address, &stats))
134 *storage_addr = address.value();
137 storage_addr_ = address.value();
242 Addr address(storage_addr_);
243 StoreStats(backend_, address, &stats);