mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 14:25:49 +00:00
vma: Don't lookup file_desc for vma twice
We do it first -- on collect, second -- on restore. The 2nd lookup is excessive, we can put fd pointer on vm_area at lookup and reuse one later. Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
@@ -145,7 +145,7 @@ extern int prepare_fds(struct pstree_item *me);
|
||||
extern int prepare_fd_pid(struct pstree_item *me);
|
||||
extern int prepare_ctl_tty(int pid, struct rst_info *rst_info, u32 ctl_tty_id);
|
||||
extern int prepare_shared_fdinfo(void);
|
||||
extern int get_filemap_fd(int pid, VmaEntry *vma_entry);
|
||||
extern int get_filemap_fd(struct vma_area *);
|
||||
extern int prepare_fs(int pid);
|
||||
extern int set_fd_flags(int fd, int flags);
|
||||
|
||||
|
Reference in New Issue
Block a user