Commit 363674a9 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 46d6396e
...@@ -41,15 +41,7 @@ static void* zfile_mmap_setup_read(VMA *vma, BigFile *file, blk_t blk, size_t bl ...@@ -41,15 +41,7 @@ static void* zfile_mmap_setup_read(VMA *vma, BigFile *file, blk_t blk, size_t bl
if (err != nil) if (err != nil)
panic("TODO"); // XXX panic("TODO"); // XXX
#if 0 // done by wcfs.cpp return (void*)vma->addr_start; // XXX (?) kill - we set vma->addr_*
mmap->incref(); // vma->mmap_overlay_server is keeping ref to mmap
vma->mmap_overlay_server = mmap._ptr();
vma->addr_start = (uintptr_t)mmap->mem_start;
vma->addr_stop = (uintptr_t)mmap->mem_stop;
#endif
return (void*)vma->addr_start; // XXX kill if we set vma->addr_*
} }
static int zfile_remmap_blk_read(VMA *vma, BigFile *file, blk_t blk) { static int zfile_remmap_blk_read(VMA *vma, BigFile *file, blk_t blk) {
...@@ -68,12 +60,6 @@ static void zfile_munmap(VMA *vma, BigFile *file) { ...@@ -68,12 +60,6 @@ static void zfile_munmap(VMA *vma, BigFile *file) {
error err; error err;
wcfs::_Mapping *mmap = static_cast<wcfs::_Mapping*>(vma->mmap_overlay_server); wcfs::_Mapping *mmap = static_cast<wcfs::_Mapping*>(vma->mmap_overlay_server);
#if 0
// NOTE taking 1 ref back from vma->mmap_overlay_server
wcfs::Mapping mmap = adoptref(static_cast<wcfs::_Mapping*>(vma->mmap_overlay_server));
vma->mmap_overlay_server = NULL;
#endif
err = mmap->unmap(); err = mmap->unmap();
if (err != nil) if (err != nil)
panic(v(err)); // XXX panic(v(err)); // XXX
......
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