diff options
author | Alexander Nyberg <alexn@telia.com> | 2005-08-04 16:14:57 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-08-04 17:20:48 +0200 |
commit | 968002166cce2ef4ead8c9441a9dd5b945c9ed1e (patch) | |
tree | 6142261f05e9ae16faa07b91e392f49513c02cf2 /arch | |
parent | [PATCH] Keys: Fix key management syscall interface bugs (diff) | |
download | linux-968002166cce2ef4ead8c9441a9dd5b945c9ed1e.tar.xz linux-968002166cce2ef4ead8c9441a9dd5b945c9ed1e.zip |
[PATCH] x86-64: use proper VM_FAULT_xxx macros
x86_64 had hardcoded the VM_ numbers so it broke down when the numbers
were changed.
Signed-off-by: Alexander Nyberg <alexn@telia.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86_64/mm/fault.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86_64/mm/fault.c b/arch/x86_64/mm/fault.c index 13792721037e..493819e543a5 100644 --- a/arch/x86_64/mm/fault.c +++ b/arch/x86_64/mm/fault.c @@ -439,13 +439,13 @@ good_area: * the fault. */ switch (handle_mm_fault(mm, vma, address, write)) { - case 1: + case VM_FAULT_MINOR: tsk->min_flt++; break; - case 2: + case VM_FAULT_MAJOR: tsk->maj_flt++; break; - case 0: + case VM_FAULT_SIGBUS: goto do_sigbus; default: goto out_of_memory; |