File tree Expand file tree Collapse file tree 2 files changed +0
-5
lines changed Expand file tree Collapse file tree 2 files changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,6 @@ Optional<unsigned> PhysicalRegion::find_and_allocate_contiguous_range(size_t cou
102
102
m_bitmap.set (page_index, true );
103
103
}
104
104
m_used += count;
105
- m_last = page + count;
106
105
return page;
107
106
}
108
107
return {};
@@ -131,9 +130,6 @@ void PhysicalRegion::return_page_at(PhysicalAddress addr)
131
130
ASSERT ((FlatPtr)local_offset < (FlatPtr)(m_pages * PAGE_SIZE));
132
131
133
132
auto page = (FlatPtr)local_offset / PAGE_SIZE;
134
- if (page < m_last)
135
- m_last = page;
136
-
137
133
m_bitmap.set (page, false );
138
134
m_used--;
139
135
}
Original file line number Diff line number Diff line change @@ -66,7 +66,6 @@ class PhysicalRegion : public RefCounted<PhysicalRegion> {
66
66
PhysicalAddress m_upper;
67
67
unsigned m_pages { 0 };
68
68
unsigned m_used { 0 };
69
- unsigned m_last { 0 };
70
69
Bitmap m_bitmap;
71
70
};
72
71
You can’t perform that action at this time.
0 commit comments