Commit 16bf1348 authored by Hugh Dickins's avatar Hugh Dickins Committed by Linus Torvalds

[PATCH] compound page: no access_process_vm check

The PageCompound check before access_process_vm's set_page_dirty_lock is no
longer necessary, so remove it.  But leave the PageCompound checks in
bio_set_pages_dirty, dio_bio_complete and nfs_free_user_pages: at least some
of those were introduced as a little optimization on hugetlb pages.
Signed-off-by: default avatarHugh Dickins <hugh@veritas.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent d98c7a09
...@@ -242,7 +242,6 @@ int access_process_vm(struct task_struct *tsk, unsigned long addr, void *buf, in ...@@ -242,7 +242,6 @@ int access_process_vm(struct task_struct *tsk, unsigned long addr, void *buf, in
if (write) { if (write) {
copy_to_user_page(vma, page, addr, copy_to_user_page(vma, page, addr,
maddr + offset, buf, bytes); maddr + offset, buf, bytes);
if (!PageCompound(page))
set_page_dirty_lock(page); set_page_dirty_lock(page);
} else { } else {
copy_from_user_page(vma, page, addr, copy_from_user_page(vma, page, addr,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment