]> git.neil.brown.name Git - history.git/commit
[PATCH] Use names, not numbers for pagefault types
authorAndrew Morton <akpm@zip.com.au>
Thu, 4 Jul 2002 15:32:11 +0000 (08:32 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Thu, 4 Jul 2002 15:32:11 +0000 (08:32 -0700)
commitf1dfe022bbea7aa89e5215a984337d6559b6bcd2
treef812df2e52fa0de4c33529bec88818d661192893
parent5feb041e29d4f3a4b94c68ab9ada8f21caebbf48
[PATCH] Use names, not numbers for pagefault types

This is Bill Irwin's cleanup patch which gives symbolic names to the
fault types:

#define VM_FAULT_OOM (-1)
#define VM_FAULT_SIGBUS 0
#define VM_FAULT_MINOR 1
#define VM_FAULT_MAJOR 2

Only arch/i386 has been updated - other architectures can do this too.
arch/i386/mm/fault.c
include/linux/mm.h
mm/memory.c