]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] mm: anon is already wrprotected
authorHugh Dickins <hugh@veritas.com>
Sun, 30 Oct 2005 01:15:55 +0000 (18:15 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 30 Oct 2005 04:40:36 +0000 (21:40 -0700)
commitc4011f2f64caa1f1f4ee7a9a4a6ad4daacbfe81f
treea76bb7fb8e092250c4399c20f0c7c973b77cb0bb
parent03e57ca96d0c3572fb4a2950fdd1593e5bf7713a
[PATCH] mm: anon is already wrprotected

do_anonymous_page's pte_wrprotect causes some confusion: in such a case,
vm_page_prot must already be forcing COW, so must omit write permission, and
so the pte_wrprotect is redundant.  Replace it by a comment to that effect,
and reword the comment on unuse_pte which also caused confusion.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/memory.c
mm/swapfile.c