> +void *vm_map_folio(struct folio *folio) > +{ > + size_t size = folio_size(folio); > + void *mem = vmap_alloc(size, NUMA_NO_NODE); Needs an error check here. > + mem = kasan_unpoison_vmalloc(mem, size, KASAN_VMALLOC_PROT_NORMAL); > + > + return mem; Why not: return kasan_unpoison_vmalloc(mem, size, KASAN_VMALLOC_PROT_NORMAL); > +EXPORT_SYMBOL(vm_map_folio); All new vmalloc/vmap functionality should be EXPORT_SYMBOL_GPL.