vm: minimum and maximum zone IDs are now defined in arch/../vm.h

This commit is contained in:
2023-05-07 21:38:08 +01:00
parent ad2ce0b2ab
commit 9f3c080e41
4 changed files with 12 additions and 5 deletions

View File

@@ -82,6 +82,10 @@ void vm_cache_destroy(struct vm_cache *cache)
static struct vm_slab *alloc_slab(struct vm_cache *cache, enum vm_flags flags)
{
struct vm_page *slab_page = vm_page_alloc(cache->c_page_order, flags);
if (!slab_page) {
return NULL;
}
struct vm_slab *slab_hdr = NULL;
void *slab_data = vm_page_get_vaddr(slab_page);