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
01e57528
Commit
01e57528
authored
Oct 21, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
a42dac90
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
wcfs/internal/wcfs_virtmem.cpp
wcfs/internal/wcfs_virtmem.cpp
+3
-2
No files found.
wcfs/internal/wcfs_virtmem.cpp
View file @
01e57528
...
...
@@ -31,6 +31,7 @@ using namespace golang;
#define HAVE_BUILTIN_TYPES_COMPATIBLE_P 0
#include <wendelin/bigfile/virtmem.h>
#include <wendelin/bigfile/ram.h>
#include <wendelin/bug.h>
#include <unordered_map>
...
...
@@ -87,7 +88,7 @@ private:
struct
_File
{
Conn
*
wconn
;
Oid
foid
;
// hex of ZBigFile root object ID
int64_t
blksize
;
// block size of this file
size_t
blksize
;
// block size of this file
// .headf file object of head/file
// .headfsize head/file size is known to be at least headfsize (size ↑=)
dict
<
int64_t
,
Tid
>
pinned
;
// {} blk -> rev that wcfs already sent us for this file
...
...
@@ -192,7 +193,7 @@ void Conn::_pin1(SrvReq *req) {
//trace("\tremmapblk %d @%s" % (req->blk, (h(req.at) if req.at else "head")))
// check if virtmem did not dirtied page corresponding to this block already
virt_lock
();
TODO
(
mmap
->
file
->
blksize
!=
mmap
->
fileh
->
ramh
->
pagesize
);
TODO
(
mmap
->
file
->
blksize
!=
mmap
->
fileh
->
ramh
->
ram
->
pagesize
);
if
(
!
__fileh_page_isdirty
(
mmap
->
fileh
,
req
->
blk
))
mmap
->
_remmapblk
(
req
.
blk
,
req
.
at
);
virt_unlock
();
...
...
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