Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
ee5db6a9
Commit
ee5db6a9
authored
Feb 14, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
e83b9085
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
bigfile/file_zodb.cpp
bigfile/file_zodb.cpp
+4
-1
wcfs/client/wcfs.cpp
wcfs/client/wcfs.cpp
+4
-2
wcfs/client/wcfs.h
wcfs/client/wcfs.h
+1
-1
No files found.
bigfile/file_zodb.cpp
View file @
ee5db6a9
...
...
@@ -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
);
// 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
;
}
...
...
wcfs/client/wcfs.cpp
View file @
ee5db6a9
...
...
@@ -586,7 +586,7 @@ error _Mapping::_remmapblk(int64_t blk, zodb::Tid at) {
// remmap_blk remmaps file[blk] in its place again.
// 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
;
// XXX locking
...
...
@@ -601,7 +601,9 @@ void _Mapping::remmap_blk(int64_t blk) {
error
err
=
mmap
.
_remmapblk
(
blk
,
blkrev
);
if
(
err
!=
nil
)
panic
(
v
(
err
));
// XXX
return
err
;
// errctx is good in _remmapblk
return
nil
;
}
// unmap removes mapping memory from address space.
...
...
wcfs/client/wcfs.h
View file @
ee5db6a9
...
...
@@ -254,7 +254,7 @@ struct _Mapping : object {
}
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
();
// don't new - create via FileH.mmap
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment