NVSL / linux-nova

NOVA is a log-structured file system designed for byte-addressable non-volatile memories, developed at the University of California, San Diego.
http://nvsl.ucsd.edu/index.php?path=projects/nova
Other
421 stars 118 forks source link

Fix failure of block bitmap allocation on large NVM in failure recovery. #98

Closed seekstar closed 3 years ago

seekstar commented 3 years ago

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.

Andiry commented 3 years ago

Thanks for fixing this!