Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
criu
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhul
criu
Commits
1293fb0f
Commit
1293fb0f
authored
Sep 28, 2011
by
Cyrill Gorcunov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
restore: Make should_restore_page being bool
Signed-off-by:
Cyrill Gorcunov
<
gorcunov@gmail.com
>
parent
4727c739
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
cr-restore.c
cr-restore.c
+10
-6
No files found.
cr-restore.c
View file @
1293fb0f
...
...
@@ -685,16 +685,20 @@ static int fixup_vma_fds(int pid, int fd)
}
}
static
inline
int
should_restore_page
(
int
pid
,
unsigned
long
vaddr
)
static
inline
bool
should_restore_page
(
int
pid
,
unsigned
long
va
)
{
struct
shmem_info
*
si
;
unsigned
long
id
;
unsigned
long
shm
id
;
id
=
find_shmem_id
(
vaddr
);
if
(
id
==
0
)
return
1
;
/*
* If this is not a shmem virtual address
* we should restore such page.
*/
shmid
=
find_shmem_id
(
va
);
if
(
!
shmid
)
return
true
;
si
=
find_shmem
(
va
ddr
,
id
);
si
=
find_shmem
(
va
,
shm
id
);
return
si
->
pid
==
pid
;
}
...
...
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