]> git.baikalelectronics.ru Git - kernel.git/commit
Remove internal use of 'write_access' in mm/memory.c
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 10 Apr 2009 15:43:11 +0000 (08:43 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 21 Jun 2009 20:06:05 +0000 (13:06 -0700)
commit527bd6b6e7a25bef36b4944b8f8b88097a4e62bd
treef7eb9588fe38dc1b045e97409e25c57c516aaf44
parent42a9dd64f681208164a7707e4f6a5cf8731591c2
Remove internal use of 'write_access' in mm/memory.c

The fault handling routines really want more fine-grained flags than a
single "was it a write fault" boolean - the callers will want to set
flags like "you can return a retry error" etc.

And that's actually how the VM works internally, but right now the
top-level fault handling functions in mm/memory.c all pass just the
'write_access' boolean around.

This switches them over to pass around the FAULT_FLAG_xyzzy 'flags'
variable instead.  The 'write_access' calling convention still exists
for the exported 'handle_mm_fault()' function, but that is next.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memory.c