git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vserver 1.9.3
[linux-2.6.git]
/
include
/
linux
/
vs_socket.h
diff --git
a/include/linux/vs_socket.h
b/include/linux/vs_socket.h
index
560f2eb
..
ed3451a
100644
(file)
--- a/
include/linux/vs_socket.h
+++ b/
include/linux/vs_socket.h
@@
-34,12
+34,12
@@
static inline int vx_sock_type(int family)
static inline void __vx_acc_sock(struct vx_info *vxi,
int family, int pos, int size, char *file, int line)
{
static inline void __vx_acc_sock(struct vx_info *vxi,
int family, int pos, int size, char *file, int line)
{
-
if (vxi) {
+ if (vxi) {
int type = vx_sock_type(family);
atomic_inc(&vxi->cacct.sock[type][pos].count);
atomic_add(size, &vxi->cacct.sock[type][pos].total);
int type = vx_sock_type(family);
atomic_inc(&vxi->cacct.sock[type][pos].count);
atomic_add(size, &vxi->cacct.sock[type][pos].total);
-
}
+ }
}
#define vx_sock_recv(sk,s) \
}
#define vx_sock_recv(sk,s) \
@@
-50,12
+50,12
@@
static inline void __vx_acc_sock(struct vx_info *vxi,
vx_acc_sock((sk)->sk_vx_info, (sk)->sk_family, 2, (s))
vx_acc_sock((sk)->sk_vx_info, (sk)->sk_family, 2, (s))
-#define
sock_vx_init(s)
do { \
+#define
sock_vx_init(s)
do { \
(s)->sk_xid = 0; \
(s)->sk_vx_info = NULL; \
} while (0)
(s)->sk_xid = 0; \
(s)->sk_vx_info = NULL; \
} while (0)
-#define
sock_nx_init(s)
do { \
+#define
sock_nx_init(s)
do { \
(s)->sk_nid = 0; \
(s)->sk_nx_info = NULL; \
} while (0)
(s)->sk_nid = 0; \
(s)->sk_nx_info = NULL; \
} while (0)