]> err.no Git - linux-2.6/blobdiff - include/linux/taskstats_kern.h
[PATCH] ext4: uninitialised extent handling
[linux-2.6] / include / linux / taskstats_kern.h
index 0ae8f67af1fd29d72f396bac891a81e72ed05711..16894b7edcc8e137dc7d58b0869f03f27710d5df 100644 (file)
@@ -9,21 +9,12 @@
 
 #include <linux/taskstats.h>
 #include <linux/sched.h>
-
-enum {
-       TASKSTATS_MSG_UNICAST,          /* send data only to requester */
-       TASKSTATS_MSG_MULTICAST,        /* send data to a group */
-};
+#include <net/genetlink.h>
 
 #ifdef CONFIG_TASKSTATS
 extern kmem_cache_t *taskstats_cache;
 extern struct mutex taskstats_exit_mutex;
 
-static inline void taskstats_exit_alloc(struct taskstats **ptidstats)
-{
-       *ptidstats = kmem_cache_zalloc(taskstats_cache, SLAB_KERNEL);
-}
-
 static inline void taskstats_exit_free(struct taskstats *tidstats)
 {
        if (tidstats)
@@ -71,17 +62,18 @@ static inline void taskstats_tgid_free(struct signal_struct *sig)
                kmem_cache_free(taskstats_cache, stats);
 }
 
-extern void taskstats_exit_send(struct task_struct *, struct taskstats *, int);
+extern void taskstats_exit_alloc(struct taskstats **, unsigned int *);
+extern void taskstats_exit_send(struct task_struct *, struct taskstats *, int, unsigned int);
 extern void taskstats_init_early(void);
 extern void taskstats_tgid_alloc(struct signal_struct *);
 #else
-static inline void taskstats_exit_alloc(struct taskstats **ptidstats)
+static inline void taskstats_exit_alloc(struct taskstats **ptidstats, unsigned int *mycpu)
 {}
 static inline void taskstats_exit_free(struct taskstats *ptidstats)
 {}
 static inline void taskstats_exit_send(struct task_struct *tsk,
                                       struct taskstats *tidstats,
-                                      int group_dead)
+                                      int group_dead, unsigned int cpu)
 {}
 static inline void taskstats_tgid_init(struct signal_struct *sig)
 {}