added lots of new files
[util-vserver.git] / util-vserver / kernel / limit.h
index d8634ec..74e02cd 100644 (file)
@@ -5,9 +5,9 @@
 
 /* context sub struct */
 
-#define        NUM_RLIMITS     20
+#define NUM_RLIMITS    16
 
-#define        VLIMIT_SOCK     16
+#define VLIMIT_SOCK    16
 
 
 struct _vx_limit {
@@ -52,7 +52,6 @@ static inline int vx_info_proc_limit(struct _vx_limit *limit, char *buffer)
 #ifndef _VX_LIMIT_H
 #define _VX_LIMIT_H
 
-#include <linux/compiler.h>
 #include "switch.h"
 
 /*  rlimit vserver commands */
@@ -79,6 +78,9 @@ struct  vcmd_ctx_rlimit_mask_v0 {
 #define CRLIM_KEEP             (~1ULL)
 
 #ifdef __KERNEL__
+
+#include <linux/compiler.h>
+
 extern int vc_get_rlimit(uint32_t, void __user *);
 extern int vc_set_rlimit(uint32_t, void __user *);
 extern int vc_get_rlimit_mask(uint32_t, void __user *);