]> git.pld-linux.org Git - packages/util-vserver.git/blob - delta-0.30.208-kheaders.diff
- updates for util-vserver 0.30.208
[packages/util-vserver.git] / delta-0.30.208-kheaders.diff
1 --- util-vserver-0.30.208/kernel/cvirt_def.h    2005-05-12 19:03:30.000000000 +0200
2 +++ util-vserver-0.30.208.x/kernel/cvirt_def.h  2005-08-02 09:23:07.000000000 +0200
3 @@ -23,10 +23,10 @@ struct _vx_syslog {
4         wait_queue_head_t log_wait;
5         spinlock_t logbuf_lock;         /* lock for the log buffer */
6  
7 -       unsigned long log_start;        /* next char to be read by syslog() */
8 -       unsigned long con_start;        /* next char to be sent to consoles */
9 -       unsigned long log_end;          /* most-recently-written-char + 1 */
10 -       unsigned long logged_chars;     /* #chars since last read+clear operation */
11 +       unsigned long log_start;        /* next char to be read by syslog() */
12 +       unsigned long con_start;        /* next char to be sent to consoles */
13 +       unsigned long log_end;  /* most-recently-written-char + 1 */
14 +       unsigned long logged_chars;     /* #chars since last read+clear operation */
15  
16         char log_buf[1024];
17  };
18 --- util-vserver-0.30.208/kernel/debug.h        2005-07-03 15:59:47.000000000 +0200
19 +++ util-vserver-0.30.208.x/kernel/debug.h      2005-08-02 09:23:07.000000000 +0200
20 @@ -135,10 +135,10 @@ struct _vx_hist_entry {
21  
22  struct _vx_hist_entry *vxh_advance(void *loc);
23  
24 -#define        VXH_HERE()              \
25 -       ({ __label__ here;      \
26 -               here:;          \
27 -               &&here; })
28 +#define        VXH_HERE(__type)                        \
29 +       ({ __label__ __vxh_##__type;            \
30 +               __vxh_##__type:;                \
31 +               &&__vxh_##__type; })
32  
33  
34  
35 @@ -157,7 +157,7 @@ static inline void __vxh_copy_vxi(struct
36         struct _vx_hist_entry *entry;           \
37                                                 \
38         preempt_disable();                      \
39 -       entry = vxh_advance(VXH_HERE());        \
40 +       entry = vxh_advance(VXH_HERE(__type));  \
41         __data;                                 \
42         entry->type = __type;                   \
43         preempt_enable();
44 @@ -179,7 +179,7 @@ static inline void __name(struct vx_info
45         entry->sc.data = data
46  
47  #define VXH_DATA(__name, __type)               \
48 -static inline                                  \
49 +static inline                                  \
50  void __name(struct vx_info *vxi, void *data)   \
51  {                                              \
52         __VXH_BODY(__type, __VXH_DATA)          \
53 @@ -191,7 +191,7 @@ void __name(struct vx_info *vxi, void *d
54         entry->ll.arg = arg
55  
56  #define VXH_LARG(__name, __type)               \
57 -static inline                                  \
58 +static inline                                  \
59  void __name(struct vx_info *vxi, long arg)     \
60  {                                              \
61         __VXH_BODY(__type, __VXH_LARG)          \
62 @@ -261,8 +261,11 @@ extern void vxh_dump_history(void);
63  
64  #ifdef CONFIG_VSERVER_DEBUG
65  #define vxd_assert_lock(l)     assert_spin_locked(l)
66 +#define vxd_assert(c,f,x...)   vxlprintk(!(c), \
67 +       "assertion [" f "] failed.", ##x, __FILE__, __LINE__)
68  #else
69  #define        vxd_assert_lock(l)      do { } while (0)
70 +#define vxd_assert(c,f,x...)   do { } while (0)
71  #endif
72  
73  
74 --- util-vserver-0.30.208/kernel/limit.h        2005-05-12 19:03:30.000000000 +0200
75 +++ util-vserver-0.30.208.x/kernel/limit.h      2005-08-02 09:23:07.000000000 +0200
76 @@ -1,6 +1,12 @@
77  #ifndef _VX_LIMIT_H
78  #define _VX_LIMIT_H
79  
80 +
81 +#define VLIMIT_NSOCK   16
82 +#define VLIMIT_OPENFD  17
83 +#define VLIMIT_ANON    18
84 +#define VLIMIT_SHMEM   19
85 +
86  #ifdef __KERNEL__
87  
88  struct sysinfo;
89 @@ -12,11 +18,6 @@ void vx_vsi_swapinfo(struct sysinfo *);
90  
91  #define NUM_LIMITS     24
92  
93 -#define VLIMIT_NSOCK   16
94 -#define VLIMIT_OPENFD  17
95 -#define VLIMIT_ANON    18
96 -#define VLIMIT_SHMEM   19
97 -
98  extern const char *vlimit_name[NUM_LIMITS];
99  
100  #endif /* __KERNEL__ */
101 --- util-vserver-0.30.208/kernel/xid.h  2005-07-14 17:22:13.000000000 +0200
102 +++ util-vserver-0.30.208.x/kernel/xid.h        2005-08-02 09:12:01.000000000 +0200
103 @@ -5,11 +5,7 @@
104  #warning config options missing
105  #endif
106  
107 -#define XID_TAG_SB(sb) (sb->s_flags & MS_TAGXID)
108 -
109 -#define XID_TAG(in)    (!(in) || \
110 -       (((struct inode *)in)->i_sb && \
111 -       XID_TAG_SB(((struct inode *)in)->i_sb)))
112 +#define XID_TAG(in)    (IS_TAGXID(in))
113  
114  
115  #ifdef CONFIG_XID_TAG_NFSD
116 @@ -105,11 +101,17 @@
117  #endif
118  
119  
120 -#ifdef CONFIG_INOXID_NONE
121 +#ifndef CONFIG_INOXID_NONE
122 +#define vx_current_fsxid(sb)   \
123 +       ((sb)->s_flags & MS_TAGXID ? current->xid : 0)
124 +#else
125  #define vx_current_fsxid(sb)   (0)
126 +#endif
127 +
128 +#ifndef CONFIG_INOXID_INTERN
129 +#define XIDINO_XID(tag, xid)   (0)
130  #else
131 -#define vx_current_fsxid(sb)   \
132 -       (XID_TAG_SB(sb) ? current->xid : 0)
133 +#define XIDINO_XID(tag, xid)   ((tag) ? (xid) : 0)
134  #endif
135  
136  #define INOXID_UID(tag, uid, gid)      \
This page took 0.061175 seconds and 4 git commands to generate.