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
0dfddece
Commit
0dfddece
authored
Dec 26, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
b37dfbd2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
bigfile/virtmem.c
bigfile/virtmem.c
+1
-0
wcfs/wcfs.go
wcfs/wcfs.go
+2
-2
No files found.
bigfile/virtmem.c
View file @
0dfddece
...
@@ -1164,6 +1164,7 @@ static void vma_page_ensure_notmappedrw(VMA *vma, Page *page)
...
@@ -1164,6 +1164,7 @@ static void vma_page_ensure_notmappedrw(VMA *vma, Page *page)
/* return whether fileh page is dirty or not.
/* return whether fileh page is dirty or not.
*
*
* must be called under virtmem lock.
* must be called under virtmem lock.
* XXX kill __ -> fileh_page_isdirty
*/
*/
bool
__fileh_page_isdirty
(
BigFileH
*
fileh
,
pgoff_t
pgoffset
)
bool
__fileh_page_isdirty
(
BigFileH
*
fileh
,
pgoff_t
pgoffset
)
{
{
...
...
wcfs/wcfs.go
View file @
0dfddece
...
@@ -925,7 +925,7 @@ retry:
...
@@ -925,7 +925,7 @@ retry:
// notify .wcfs/zhead
// notify .wcfs/zhead
for
sk
:=
range
gdebug
.
zheadSockTab
{
for
sk
:=
range
gdebug
.
zheadSockTab
{
_
,
err
:=
fmt
.
Fprintf
(
xio
.
Bind
Writer
(
sk
,
ctx
),
"%s
\n
"
,
δZ
.
Tid
)
_
,
err
:=
fmt
.
Fprintf
(
xio
.
Bind
CtxW
(
sk
,
ctx
),
"%s
\n
"
,
δZ
.
Tid
)
if
err
!=
nil
{
if
err
!=
nil
{
log
.
Errorf
(
"%s"
,
err
)
// XXX errctx + file, handle, reader pid
log
.
Errorf
(
"%s"
,
err
)
// XXX errctx + file, handle, reader pid
sk
.
Close
()
sk
.
Close
()
...
@@ -1738,7 +1738,7 @@ func (wlink *WatchLink) _serve() (err error) {
...
@@ -1738,7 +1738,7 @@ func (wlink *WatchLink) _serve() (err error) {
ctx
,
cancel
:=
context
.
WithCancel
(
ctx0
)
ctx
,
cancel
:=
context
.
WithCancel
(
ctx0
)
wg
,
ctx
:=
errgroup
.
WithContext
(
ctx
)
wg
,
ctx
:=
errgroup
.
WithContext
(
ctx
)
r
:=
bufio
.
NewReader
(
xio
.
Bind
Reader
(
wlink
.
sk
,
ctx
))
r
:=
bufio
.
NewReader
(
xio
.
Bind
CtxR
(
wlink
.
sk
,
ctx
))
defer
func
()
{
defer
func
()
{
// cancel all handlers on both error and ok return.
// cancel all handlers on both error and ok return.
...
...
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