• Home
  • Raw
  • Download

Lines Matching refs:l1_index

637     pub fn l2_table(&mut self, l1_index: usize) -> Result<Option<&[u64]>> {  in l2_table()
638 let l2_addr_disk = *self.l1_table.get(l1_index).ok_or(Error::InvalidIndex)?; in l2_table()
645 if !self.l2_cache.contains_key(&l1_index) { in l2_table()
654 .insert(l1_index, table, |index, evicted| { in l2_table()
665 Ok(Some(self.l2_cache.get(&l1_index).unwrap().get_values())) in l2_table()
771 for l1_index in 0..header.l1_size as usize { in rebuild_refcounts()
772 let l2_addr_disk = *l1_table.get(l1_index).ok_or(Error::InvalidIndex)?; in rebuild_refcounts()
989 let l1_index = self.l1_table_index(address); in l1_address_offset() localVariable
990 l1_index * size_of::<u64>() as u64 in l1_address_offset()
1010 let l1_index = self.l1_table_index(address) as usize; in file_offset_read() localVariable
1013 .get(l1_index) in file_offset_read()
1023 if !self.l2_cache.contains_key(&l1_index) { in file_offset_read()
1030 self.l2_cache.insert(l1_index, table, |index, evicted| { in file_offset_read()
1039 let cluster_addr = self.l2_cache.get(&l1_index).unwrap()[l2_index]; in file_offset_read()
1053 let l1_index = self.l1_table_index(address) as usize; in file_offset_write() localVariable
1056 .get(l1_index) in file_offset_write()
1062 if !self.l2_cache.contains_key(&l1_index) { in file_offset_write()
1070 self.l1_table[l1_index] = new_addr; in file_offset_write()
1077 self.l2_cache.insert(l1_index, l2_table, |index, evicted| { in file_offset_write()
1086 let cluster_addr = match self.l2_cache.get(&l1_index).unwrap()[l2_index] { in file_offset_write()
1100 self.update_cluster_addr(l1_index, l2_index, cluster_addr, &mut set_refcounts)?; in file_offset_write()
1117 l1_index: usize, in update_cluster_addr()
1122 if !self.l2_cache.get(&l1_index).unwrap().dirty() { in update_cluster_addr()
1127 let addr = self.l1_table[l1_index]; in update_cluster_addr()
1140 self.l1_table[l1_index] = new_addr; in update_cluster_addr()
1143 self.l2_cache.get_mut(&l1_index).unwrap()[l2_index] = cluster_addr; in update_cluster_addr()
1187 let l1_index = self.l1_table_index(address) as usize; in cluster_allocated() localVariable
1190 .get(l1_index) in cluster_allocated()
1200 if !self.l2_cache.contains_key(&l1_index) { in cluster_allocated()
1206 self.l2_cache.insert(l1_index, table, |index, evicted| { in cluster_allocated()
1215 let cluster_addr = self.l2_cache.get(&l1_index).unwrap()[l2_index]; in cluster_allocated()
1259 let l1_index = self.l1_table_index(address) as usize; in deallocate_cluster() localVariable
1262 .get(l1_index) in deallocate_cluster()
1272 if !self.l2_cache.contains_key(&l1_index) { in deallocate_cluster()
1278 self.l2_cache.insert(l1_index, table, |index, evicted| { in deallocate_cluster()
1287 let cluster_addr = self.l2_cache.get(&l1_index).unwrap()[l2_index]; in deallocate_cluster()
1308 self.l2_cache.get_mut(&l1_index).unwrap()[l2_index] = 0; in deallocate_cluster()
1435 for (l1_index, l2_table) in self.l2_cache.iter_mut().filter(|(_k, v)| v.dirty()) { in sync_caches()
1437 let addr = self.l1_table[*l1_index]; in sync_caches()