This commit was manufactured by cvs2svn to create branch 'vserver'.
[linux-2.6.git] / kernel / vserver / cacct_init.h
diff --git a/kernel/vserver/cacct_init.h b/kernel/vserver/cacct_init.h
new file mode 100644 (file)
index 0000000..88f60bc
--- /dev/null
@@ -0,0 +1,25 @@
+
+
+static inline void vx_info_init_cacct(struct _vx_cacct *cacct)
+{
+       int i,j;
+
+
+       for (i=0; i<VXA_SOCK_SIZE; i++) {
+               for (j=0; j<3; j++) {
+                       atomic_set(&cacct->sock[i][j].count, 0);
+                       atomic_set(&cacct->sock[i][j].total, 0);
+               }
+       }
+       for (i=0; i<8; i++)
+               atomic_set(&cacct->slab[i], 0);
+       for (i=0; i<5; i++)
+               for (j=0; j<4; j++)
+                       atomic_set(&cacct->page[i][j], 0);
+}
+
+static inline void vx_info_exit_cacct(struct _vx_cacct *cacct)
+{
+       return;
+}
+