summaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index c8e519d0b4a3..451e241f32c5 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -846,10 +846,6 @@ struct user_struct {
846 atomic_t __count; /* reference count */ 846 atomic_t __count; /* reference count */
847 atomic_t processes; /* How many processes does this user have? */ 847 atomic_t processes; /* How many processes does this user have? */
848 atomic_t sigpending; /* How many pending signals does this user have? */ 848 atomic_t sigpending; /* How many pending signals does this user have? */
849#ifdef CONFIG_INOTIFY_USER
850 atomic_t inotify_watches; /* How many inotify watches does this user have? */
851 atomic_t inotify_devs; /* How many inotify devs does this user have opened? */
852#endif
853#ifdef CONFIG_FANOTIFY 849#ifdef CONFIG_FANOTIFY
854 atomic_t fanotify_listeners; 850 atomic_t fanotify_listeners;
855#endif 851#endif
@@ -3051,6 +3047,9 @@ extern bool current_is_single_threaded(void);
3051#define for_each_process_thread(p, t) \ 3047#define for_each_process_thread(p, t) \
3052 for_each_process(p) for_each_thread(p, t) 3048 for_each_process(p) for_each_thread(p, t)
3053 3049
3050typedef int (*proc_visitor)(struct task_struct *p, void *data);
3051void walk_process_tree(struct task_struct *top, proc_visitor, void *);
3052
3054static inline int get_nr_threads(struct task_struct *tsk) 3053static inline int get_nr_threads(struct task_struct *tsk)
3055{ 3054{
3056 return tsk->signal->nr_threads; 3055 return tsk->signal->nr_threads;