From 1d2652dd2c3e942e75dc3137b3cb1774b43ae377 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Tue, 29 Oct 2002 23:35:44 -0800 Subject: [PATCH] hot-n-cold pages: bulk page freeing Patch from Martin Bligh. Implements __free_pages_bulk(). Release multiple pages of a given order into the buddy all within a single acquisition of the zone lock. This also removes current->local_pages. The per-task list of pages which only ever contained one page. To prevent other tasks from stealing pages which this task has just freed up. Given that we're freeing into the per-cpu caches, and that those are multipage caches, and the cpu-stickiness of the scheduler, I think current->local_pages is no longer needed. --- kernel/fork.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'kernel') diff --git a/kernel/fork.c b/kernel/fork.c index 2f5f00301182..4a33d682dfaa 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -769,8 +769,6 @@ static struct task_struct *copy_process(unsigned long clone_flags, p->start_time = jiffies; p->security = NULL; - INIT_LIST_HEAD(&p->local_pages); - retval = -ENOMEM; if (security_ops->task_alloc_security(p)) goto bad_fork_cleanup; -- cgit v1.2.3