diff --git a/Kernel/VM/VMObject.h b/Kernel/VM/VMObject.h index 3c9cfbb831e..58ae7276c3d 100644 --- a/Kernel/VM/VMObject.h +++ b/Kernel/VM/VMObject.h @@ -40,8 +40,8 @@ public: virtual bool is_contiguous() const { return false; } size_t page_count() const { return m_physical_pages.size(); } - const Vector, 16>& physical_pages() const { return m_physical_pages; } - Vector, 16>& physical_pages() { return m_physical_pages; } + Span const> physical_pages() const { return m_physical_pages.span(); } + Span> physical_pages() { return m_physical_pages.span(); } size_t size() const { return m_physical_pages.size() * PAGE_SIZE; }