projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad8c2ee
)
mm: set VM_FAULT_WRITE in do_swap_page()
author
Andrea Arcangeli
<
[email protected]
>
Tue, 10 Aug 2010 00:19:49 +0000
(17:19 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 10 Aug 2010 03:45:02 +0000
(20:45 -0700)
Set the flag if do_swap_page is decowing the page the same way do_wp_page
would too.
Signed-off-by: Andrea Arcangeli <
[email protected]
>
Cc: KOSAKI Motohiro <
[email protected]
>
Cc: Rik van Riel <
[email protected]
>
Cc: Nick Piggin <
[email protected]
>
Cc: Hugh Dickins <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/memory.c
patch
|
blob
|
history
diff --git
a/mm/memory.c
b/mm/memory.c
index 6bc039486e9f5ecd5498fe6c3546b6daf451c95d..1ecca56e0a48cb773f4068d254741d319eda01c7 100644
(file)
--- a/
mm/memory.c
+++ b/
mm/memory.c
@@
-2723,6
+2723,7
@@
static int do_swap_page(struct mm_struct *mm, struct vm_area_struct *vma,
if ((flags & FAULT_FLAG_WRITE) && reuse_swap_page(page)) {
pte = maybe_mkwrite(pte_mkdirty(pte), vma);
flags &= ~FAULT_FLAG_WRITE;
+ ret |= VM_FAULT_WRITE;
exclusive = 1;
}
flush_icache_page(vma, page);