Currently, the block bitmaps are allocated by kzalloc. However, the maximum size of space it can allocate is finite(typically 4MiB). So if the size of NVM is big enough(>128GiB), the size of block bitmap will exceed the maximum size of space kzalloc can allocate, which will cause the failure of block bitmap allocation.
This PR fixes it by allocating block bitmaps with kvzalloc.
Currently, the block bitmaps are allocated by
kzalloc
. However, the maximum size of space it can allocate is finite(typically 4MiB). So if the size of NVM is big enough(>128GiB), the size of block bitmap will exceed the maximum size of spacekzalloc
can allocate, which will cause the failure of block bitmap allocation.This PR fixes it by allocating block bitmaps with
kvzalloc
.