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
4324420a
Commit
4324420a
authored
Mar 05, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
22c89e0e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
wcfs/client/wcfs.cpp
wcfs/client/wcfs.cpp
+1
-1
wcfs/client/wcfs.h
wcfs/client/wcfs.h
+2
-1
No files found.
wcfs/client/wcfs.cpp
View file @
4324420a
...
@@ -1160,7 +1160,7 @@ error _Mapping::unmap() {
...
@@ -1160,7 +1160,7 @@ error _Mapping::unmap() {
//
//
// The following locks must be held by caller:
// The following locks must be held by caller:
// - f.wconn.atMu
// - f.wconn.atMu
// - f._mmapMu
XXX not needed? (f._mmaps and f._pinned are not used)
// - f._mmapMu
error
_Mapping
::
_remmapblk
(
int64_t
blk
,
zodb
::
Tid
at
)
{
error
_Mapping
::
_remmapblk
(
int64_t
blk
,
zodb
::
Tid
at
)
{
// XXX must not be called after Mapping is switched to efault?
// XXX must not be called after Mapping is switched to efault?
...
...
wcfs/client/wcfs.h
View file @
4324420a
...
@@ -230,7 +230,7 @@ struct _FileH : object {
...
@@ -230,7 +230,7 @@ struct _FileH : object {
Conn
wconn
;
Conn
wconn
;
zodb
::
Oid
foid
;
// ZBigFile root object ID (does not change after fileh open)
zodb
::
Oid
foid
;
// ZBigFile root object ID (does not change after fileh open)
// protect by wconn._filehMu
// protect
ed
by wconn._filehMu
_FileHState
_state
;
// opening/opened/closing/closed
_FileHState
_state
;
// opening/opened/closing/closed
int
_nopen
;
// number of times Conn.open returned this fileh
int
_nopen
;
// number of times Conn.open returned this fileh
...
@@ -278,6 +278,7 @@ struct _Mapping : object {
...
@@ -278,6 +278,7 @@ struct _Mapping : object {
FileH
fileh
;
FileH
fileh
;
int64_t
blk_start
;
// offset of this mapping in file
int64_t
blk_start
;
// offset of this mapping in file
// protected by fileh._mmapMu
uint8_t
*
mem_start
;
// mmapped memory [mem_start, mem_stop)
uint8_t
*
mem_start
;
// mmapped memory [mem_start, mem_stop)
uint8_t
*
mem_stop
;
uint8_t
*
mem_stop
;
VMA
*
vma
;
// mmapped under this virtmem VMA | nil if created standalone from virtmem
VMA
*
vma
;
// mmapped under this virtmem VMA | nil if created standalone from virtmem
...
...
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