2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 14:25:49 +00:00

files: Compact the code by removing per-file dump helpers

Since *all* of them just call do_dump_gen_file with proper ops,
just call one directly. Compacts the code.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov
2013-06-14 00:11:08 +04:00
parent 42f77676b6
commit d020ebb36d
26 changed files with 65 additions and 126 deletions

View File

@@ -24,7 +24,7 @@ extern struct ns_desc pid_ns_desc;
extern struct ns_desc user_ns_desc;
extern unsigned long current_ns_mask;
extern int dump_ns_file(struct fd_parms *p, int lfd, const int fdinfo);
extern const struct fdtype_ops nsfile_dump_ops;
extern int collect_ns_files(void);
int dump_namespaces(struct pid *pid, unsigned int ns_flags);