Commit 4cbd819c authored by Kirill Smelkov's avatar Kirill Smelkov

bigfile/virtmem: vma_mmap_page: Don't skip mmap_page error silently

parent c9cc7772
......@@ -938,8 +938,8 @@ static void vma_mmap_page(VMA *vma, Page *page) {
pgoff_invma = page->f_pgoffset - vma->f_pgoffset;
if (!bitmap_test_bit(vma->page_ismappedv, pgoff_invma)) {
// XXX err
page_mmap(page, vma_page_addr(vma, page), prot);
void *mmapped = page_mmap(page, vma_page_addr(vma, page), prot);
BUG_ON(!mmapped);
bitmap_set_bit(vma->page_ismappedv, pgoff_invma);
page_incref(page);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment