Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
`KMC_KVMEM` was designed to use `kvmalloc()` (see openzfs#9034). However, this was changed by openzfs#9813 to use `vmalloc()`, because `kvmalloc()` doesn't always return page-aligned addresses. However, the SPL kmem-cache implementation doesn't need page-aligned addresses, because no SPL caches request any particular alignment. This commit changes `KMC_KVMEM` to use `kvmalloc()`, removes the assertion that it returns page-aligned addresses, and asserts that SPL caches to not request any particular alignment. Signed-off-by: Matthew Ahrens <mahrens@delphix.com>
- Loading branch information