Commit ee5db6a9 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent e83b9085
...@@ -55,7 +55,10 @@ static int zfile_remmap_blk_read(VMA *vma, BigFile *file, blk_t blk) { ...@@ -55,7 +55,10 @@ static int zfile_remmap_blk_read(VMA *vma, BigFile *file, blk_t blk) {
wcfs::_Mapping *mmap = static_cast<wcfs::_Mapping*>(vma->mmap_overlay_server); wcfs::_Mapping *mmap = static_cast<wcfs::_Mapping*>(vma->mmap_overlay_server);
// XXX use file? // XXX use file?
mmap->remmap_blk(blk); // XXX err error err;
err = mmap->remmap_blk(blk);
if (err != nil)
panic(v(err)); // XXX
return 0; return 0;
} }
......
...@@ -586,7 +586,7 @@ error _Mapping::_remmapblk(int64_t blk, zodb::Tid at) { ...@@ -586,7 +586,7 @@ error _Mapping::_remmapblk(int64_t blk, zodb::Tid at) {
// remmap_blk remmaps file[blk] in its place again. // remmap_blk remmaps file[blk] in its place again.
// virtmem calls this to remmap a block after RW dirty page was e.g. discarded. // virtmem calls this to remmap a block after RW dirty page was e.g. discarded.
void _Mapping::remmap_blk(int64_t blk) { error _Mapping::remmap_blk(int64_t blk) {
_Mapping& mmap = *this; _Mapping& mmap = *this;
// XXX locking // XXX locking
...@@ -601,7 +601,9 @@ void _Mapping::remmap_blk(int64_t blk) { ...@@ -601,7 +601,9 @@ void _Mapping::remmap_blk(int64_t blk) {
error err = mmap._remmapblk(blk, blkrev); error err = mmap._remmapblk(blk, blkrev);
if (err != nil) if (err != nil)
panic(v(err)); // XXX return err; // errctx is good in _remmapblk
return nil;
} }
// unmap removes mapping memory from address space. // unmap removes mapping memory from address space.
......
...@@ -254,7 +254,7 @@ struct _Mapping : object { ...@@ -254,7 +254,7 @@ struct _Mapping : object {
} }
error _remmapblk(int64_t blk, zodb::Tid at); error _remmapblk(int64_t blk, zodb::Tid at);
void remmap_blk(int64_t blk); // for virtmem-only error remmap_blk(int64_t blk); // for virtmem-only
error unmap(); error unmap();
// don't new - create via FileH.mmap // don't new - create via FileH.mmap
......
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