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
74d170c6
Commit
74d170c6
authored
Dec 04, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
d18ded8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
wcfs/internal/wcfs_virtmem.cpp
wcfs/internal/wcfs_virtmem.cpp
+18
-1
No files found.
wcfs/internal/wcfs_virtmem.cpp
View file @
74d170c6
...
@@ -86,6 +86,7 @@ struct _Mapping {
...
@@ -86,6 +86,7 @@ struct _Mapping {
}
}
error
_remmapblk
(
int64_t
blk
,
zodb
::
Tid
at
);
error
_remmapblk
(
int64_t
blk
,
zodb
::
Tid
at
);
void
remmap_blk
(
int64_t
blk
);
};
};
...
@@ -462,7 +463,23 @@ error _Mapping::_remmapblk(int64_t blk, zodb::Tid at) {
...
@@ -462,7 +463,23 @@ error _Mapping::_remmapblk(int64_t blk, zodb::Tid at) {
return
nil
;
return
nil
;
}
}
// XXX _Mapping::remmap_blk
// 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
)
{
_Mapping
&
mmap
=
*
this
;
// XXX locking
if
(
!
(
mmap
.
blk_start
<=
blk
&&
blk
<
mmap
.
blk_stop
()))
panic
(
"remmap_blk: blk out of Mapping range"
);
// blkrev = rev | @head
zodb
::
Tid
blkrev
;
bool
ok
;
tie
(
blkrev
,
ok
)
=
mmap
.
file
->
pinned
.
get
(
blk
);
if
(
!
ok
)
blkrev
=
TidHead
;
mmap
.
_remmapblk
(
blk
,
blkrev
);
// XXX err
}
// XXX _Mapping::unmap
// XXX _Mapping::unmap
...
...
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