summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorAndrew Morton <akpm@digeo.com>2002-10-29 23:35:44 -0800
committerLinus Torvalds <torvalds@penguin.transmeta.com>2002-10-29 23:35:44 -0800
commit1d2652dd2c3e942e75dc3137b3cb1774b43ae377 (patch)
tree2e8b5fdcf4e5d12dfa1816912b08138009230d5b /kernel
parent38e419f5b012874111de20e4589c718421dc43ab (diff)
[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.
Diffstat (limited to 'kernel')
-rw-r--r--kernel/fork.c2
1 files changed, 0 insertions, 2 deletions
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;