[CRIU] [PATCH 3/3] ns: Use one ns_desc_array instead of sprinkled definitions
Cyrill Gorcunov
gorcunov at openvz.org
Mon May 13 05:29:43 EDT 2013
We gather all clone flags, names and types in one global
ns_desc_array entry. The rest of code simply use it when
needed.
It might be worth to even make it const.
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
include/ipc_ns.h | 2 --
include/mount.h | 2 --
include/namespaces.h | 15 ++++++++++++++-
include/net.h | 2 --
ipc_ns.c | 7 +------
mount.c | 5 -----
namespaces.c | 24 ++++++++++++++----------
net.c | 7 +------
parasite-syscall.c | 4 ++--
sockets.c | 4 ++--
uts_ns.c | 7 +------
11 files changed, 35 insertions(+), 44 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-ns-Use-one-ns_desc_array-instead-of-sprinkled-defini.patch
Type: text/x-patch
Size: 6980 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20130513/94d74042/attachment.bin>
More information about the CRIU
mailing list