diff --git a/src/pdata/space_map_metadata.rs b/src/pdata/space_map_metadata.rs index e7c22fd..4e2e563 100644 --- a/src/pdata/space_map_metadata.rs +++ b/src/pdata/space_map_metadata.rs @@ -70,7 +70,7 @@ fn adjust_counts(w: &mut WriteBatcher, ie: &IndexEntry, allocs: &[u64]) -> Resul use BitmapEntry::*; let mut first_free = ie.none_free_before; - let mut nr_free = ie.nr_free - allocs.len() as u32; + let nr_free = ie.nr_free - allocs.len() as u32; // Read the bitmap let bitmap_block = w.engine.read(ie.blocknr)?; @@ -82,10 +82,6 @@ fn adjust_counts(w: &mut WriteBatcher, ie: &IndexEntry, allocs: &[u64]) -> Resul first_free = *a as u32 + 1; } - if bitmap.entries[*a as usize] == Small(0) { - nr_free -= 1; - } - bitmap.entries[*a as usize] = Small(1); }