projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0fa9db
)
[PATCH] proc: properly compute TGID_OFFSET
author
Eric W. Biederman
<
[email protected]
>
Mon, 2 Oct 2006 09:18:55 +0000
(
02:18
-0700)
committer
Linus Torvalds
<
[email protected]
>
Mon, 2 Oct 2006 14:57:24 +0000
(07:57 -0700)
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 <
[email protected]
>
Cc: Oleg Nesterov <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/proc/base.c
patch
|
blob
|
history
diff --git
a/fs/proc/base.c
b/fs/proc/base.c
index 04e29f929a118f917ef26e25934a3917f8e43edb..c4fcd6465f73bde88c883fa4bebb7df8dc2a74e1 100644
(file)
--- a/
fs/proc/base.c
+++ b/
fs/proc/base.c
@@
-1961,7
+1961,7
@@
retry:
return task;
}
-#define TGID_OFFSET (FIRST_PROCESS_ENTRY + (
1 /* /proc/self */
))
+#define TGID_OFFSET (FIRST_PROCESS_ENTRY + (
ARRAY_SIZE(proc_base_stuff) - 1
))
static int proc_pid_fill_cache(struct file *filp, void *dirent, filldir_t filldir,
struct task_struct *task, int tgid)