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
4ced9531
Commit
4ced9531
authored
Dec 18, 2012
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
files: Open-code MAKE_GEN_ID macro into its single caller
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
1e538cf0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
4 deletions
+1
-4
cr-dump.c
cr-dump.c
+1
-1
file-ids.h
include/file-ids.h
+0
-3
No files found.
cr-dump.c
View file @
4ced9531
...
@@ -188,7 +188,7 @@ static int collect_fds(pid_t pid, struct parasite_drain_fd *dfds)
...
@@ -188,7 +188,7 @@ static int collect_fds(pid_t pid, struct parasite_drain_fd *dfds)
static
u32
make_gen_id
(
const
struct
fd_parms
*
p
)
static
u32
make_gen_id
(
const
struct
fd_parms
*
p
)
{
{
return
MAKE_FD_GENID
(
p
->
stat
.
st_dev
,
p
->
stat
.
st_ino
,
p
->
pos
);
return
((
u32
)
p
->
stat
.
st_dev
)
^
((
u32
)
p
->
stat
.
st_ino
)
^
((
u32
)
p
->
pos
);
}
}
int
do_dump_gen_file
(
struct
fd_parms
*
p
,
int
lfd
,
int
do_dump_gen_file
(
struct
fd_parms
*
p
,
int
lfd
,
...
...
include/file-ids.h
View file @
4ced9531
...
@@ -10,9 +10,6 @@
...
@@ -10,9 +10,6 @@
#define FD_PID_INVALID (-2U)
#define FD_PID_INVALID (-2U)
#define FD_DESC_INVALID (-3U)
#define FD_DESC_INVALID (-3U)
#define MAKE_FD_GENID(dev, ino, pos) \
(((u32)(dev) ^ (u32)(ino) ^ (u32)(pos)))
struct
fdinfo_entry
;
struct
fdinfo_entry
;
extern
int
fd_id_generate
(
pid_t
pid
,
FdinfoEntry
*
fe
);
extern
int
fd_id_generate
(
pid_t
pid
,
FdinfoEntry
*
fe
);
extern
u32
fd_id_generate_special
(
void
);
extern
u32
fd_id_generate_special
(
void
);
...
...
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