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) { ...@@ -938,8 +938,8 @@ static void vma_mmap_page(VMA *vma, Page *page) {
pgoff_invma = page->f_pgoffset - vma->f_pgoffset; pgoff_invma = page->f_pgoffset - vma->f_pgoffset;
if (!bitmap_test_bit(vma->page_ismappedv, pgoff_invma)) { if (!bitmap_test_bit(vma->page_ismappedv, pgoff_invma)) {
// XXX err void *mmapped = page_mmap(page, vma_page_addr(vma, page), prot);
page_mmap(page, vma_page_addr(vma, page), prot); BUG_ON(!mmapped);
bitmap_set_bit(vma->page_ismappedv, pgoff_invma); bitmap_set_bit(vma->page_ismappedv, pgoff_invma);
page_incref(page); 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