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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
7355cffc
Commit
7355cffc
authored
Feb 13, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
8f62953d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
wcfs/client/wcfs.cpp
wcfs/client/wcfs.cpp
+9
-3
No files found.
wcfs/client/wcfs.cpp
View file @
7355cffc
...
...
@@ -239,8 +239,7 @@ error _Conn::__pin1(PinReq *req) {
tie
(
f
,
ok
)
=
wconn
.
_filehtab
.
get_
(
req
->
foid
);
if
(
!
ok
)
{
wconn
.
_filehmu
.
unlock
();
// XXX err = we are not watching the file - why wcfs sent us this update?
return
fmt
::
errorf
(
"err TODO"
);
return
fmt
::
errorf
(
"unexpected pin: file not watched"
);
// why wcfs sent us this update?
}
...
...
@@ -255,6 +254,7 @@ error _Conn::__pin1(PinReq *req) {
// pin only if virtmem did not dirtied page corresponding to this block already
// if virtmem dirtied the page - it will ask us to remmap it again after commit or abort.
bool
do_pin
=
true
;
error
err
;
if
(
mmap
->
vma
!=
NULL
)
{
virt_lock
();
BigFileH
*
virt_fileh
=
mmap
->
vma
->
fileh
;
...
...
@@ -263,11 +263,17 @@ error _Conn::__pin1(PinReq *req) {
}
if
(
do_pin
)
mmap
->
_remmapblk
(
req
->
blk
,
req
->
at
);
// XXX err
err
=
mmap
->
_remmapblk
(
req
->
blk
,
req
->
at
);
if
(
mmap
->
vma
!=
NULL
)
virt_unlock
();
// on error don't need to continue with other mappings - all fileh and
// all mappings become marked invalid on pinner failure.
// XXX all call wconn._down from here under wconn._filehmu lock?
if
(
err
!=
nil
)
return
err
;
//trace("\t-> remmaped"); XXX
}
...
...
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