[CRIU] [PATCH 0/7] Relax fdinfo parsing code
Pavel Emelyanov
xemul at virtuozzo.com
Thu Jun 22 20:38:08 MSK 2017
Right now we pass a callback into the routine and a void *pointer,
which, in many cases, is the fdinfos union filled by the parsing code.
The union is then passed to the callback which in many cases simply
copies its contents somewhere.
Let's relax the whole thing and shrink the code:
criu/autofs.c | 2
criu/cr-check.c | 64 ++++----------
criu/eventfd.c | 31 +-----
criu/eventpoll.c | 39 +-------
criu/files.c | 2
criu/fsnotify.c | 129 ++++++++++------------------
criu/include/fdinfo.h | 40 --------
criu/include/fsnotify.h | 5 -
criu/proc_parse.c | 219 +++++++++++++++++++++---------------------------
criu/signalfd.c | 29 +-----
criu/timerfd.c | 25 ++---
11 files changed, 203 insertions(+), 382 deletions(-)
Validated:
https://travis-ci.org/xemul/criu/builds/244599956
More information about the CRIU
mailing list