diff options
| author | Andrew Morton <akpm@digeo.com> | 2002-10-29 23:35:44 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@penguin.transmeta.com> | 2002-10-29 23:35:44 -0800 |
| commit | 1d2652dd2c3e942e75dc3137b3cb1774b43ae377 (patch) | |
| tree | 2e8b5fdcf4e5d12dfa1816912b08138009230d5b /kernel | |
| parent | 38e419f5b012874111de20e4589c718421dc43ab (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.c | 2 |
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; |
