aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorPrasanna Meda <pmeda@akamai.com>2005-01-04 05:28:28 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-01-04 05:28:28 -0800
commitfe52f9669c249f2bc9c44c541a83b0c18120cb0d (patch)
treec699f3670e3e423d68ecac98fce315e1c3c3ea7c /fs
parentbb51bc5933d82005cf0625eaaaa16f7df1011ece (diff)
downloadhistory-fe52f9669c249f2bc9c44c541a83b0c18120cb0d.tar.gz
[PATCH] fork: total_forks not counted under tasklist_lock
Bring the total_forks under tasklist_lock. When most of the fork code icluding nr_threads is moved to copy_process() from do_fork() code in 2.6, this is left out. Althought accuracy of total_forks is not important, it would be nice to add this. It does not involve additional cost, and the code will be cleaner if it is grouped with nr_threads. The difference is, total_forks will increase on fork, but nr_threads will increase on fork and decrease on the exit. I also moved extern decleration to sched.h from proc_misc.c. Signed-off-by: Prasanna Meda <pmeda@akamai.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/proc/proc_misc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/proc/proc_misc.c b/fs/proc/proc_misc.c
index 73c8b248156a64..0efe2bfb281779 100644
--- a/fs/proc/proc_misc.c
+++ b/fs/proc/proc_misc.c
@@ -322,7 +322,6 @@ static struct file_operations proc_slabinfo_operations = {
int show_stat(struct seq_file *p, void *v)
{
int i;
- extern unsigned long total_forks;
unsigned long jif;
u64 sum = 0, user = 0, nice = 0, system = 0,
idle = 0, iowait = 0, irq = 0, softirq = 0;