aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2006-10-02 05:18:55 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-02 10:57:24 -0400
commit8e95bd936df2d3fc0e773068aa34350306a5c52a (patch)
treefe8c3cdeb892d73e2302c2595d4790e49e2ba858
parentb0fa9db6abdb2875a6d3069ddc6a2846a73fa5cd (diff)
[PATCH] proc: properly compute TGID_OFFSET
The value doesn't change but this ensures I will have the proper value when other files are added to proc_base_stuff. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Cc: Oleg Nesterov <oleg@tv-sign.ru> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--fs/proc/base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c
index 04e29f929a11..c4fcd6465f73 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -1961,7 +1961,7 @@ retry:
1961 return task; 1961 return task;
1962} 1962}
1963 1963
1964#define TGID_OFFSET (FIRST_PROCESS_ENTRY + (1 /* /proc/self */)) 1964#define TGID_OFFSET (FIRST_PROCESS_ENTRY + (ARRAY_SIZE(proc_base_stuff) - 1))
1965 1965
1966static int proc_pid_fill_cache(struct file *filp, void *dirent, filldir_t filldir, 1966static int proc_pid_fill_cache(struct file *filp, void *dirent, filldir_t filldir,
1967 struct task_struct *task, int tgid) 1967 struct task_struct *task, int tgid)