mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-29 04:50:26 +00:00
files: Open-code MAKE_GEN_ID macro into its single caller
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
1e538cf02b
commit
4ced9531e6
2 changed files with 1 additions and 4 deletions
|
|
@ -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)
|
||||
{
|
||||
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,
|
||||
|
|
|
|||
|
|
@ -10,9 +10,6 @@
|
|||
#define FD_PID_INVALID (-2U)
|
||||
#define FD_DESC_INVALID (-3U)
|
||||
|
||||
#define MAKE_FD_GENID(dev, ino, pos) \
|
||||
(((u32)(dev) ^ (u32)(ino) ^ (u32)(pos)))
|
||||
|
||||
struct fdinfo_entry;
|
||||
extern int fd_id_generate(pid_t pid, FdinfoEntry *fe);
|
||||
extern u32 fd_id_generate_special(void);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue