Commit 48ceccc1 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Move cpu_vm_mask to be closer to mmu_context_t in struct mm

From: Jack Steiner <steiner@sgi.com>

The cpu_vm_mask use to be close to the mmu_context_t field in the mm
struct.  Recently some large members were added between "cpu_vm_mask" and
"context".  I suspect that was an oversight.

Here is a patch that puts the fields close together.  This makes it likely
that both fields are in the same cache line.  Since both fields are likely
to be updated at the same time, this may improve performance.
parent 9a76f566
...@@ -204,7 +204,6 @@ struct mm_struct { ...@@ -204,7 +204,6 @@ struct mm_struct {
unsigned long arg_start, arg_end, env_start, env_end; unsigned long arg_start, arg_end, env_start, env_end;
unsigned long rss, total_vm, locked_vm; unsigned long rss, total_vm, locked_vm;
unsigned long def_flags; unsigned long def_flags;
cpumask_t cpu_vm_mask;
unsigned long saved_auxv[40]; /* for /proc/PID/auxv */ unsigned long saved_auxv[40]; /* for /proc/PID/auxv */
...@@ -212,6 +211,8 @@ struct mm_struct { ...@@ -212,6 +211,8 @@ struct mm_struct {
#ifdef CONFIG_HUGETLB_PAGE #ifdef CONFIG_HUGETLB_PAGE
int used_hugetlb; int used_hugetlb;
#endif #endif
cpumask_t cpu_vm_mask;
/* Architecture-specific MM context */ /* Architecture-specific MM context */
mm_context_t context; mm_context_t context;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment