Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Hugh Dickins and committed by
Linus Torvalds
16bf1348 d98c7a09

+1 -2
+1 -2
kernel/ptrace.c
··· 242 242 if (write) { 243 243 copy_to_user_page(vma, page, addr, 244 244 maddr + offset, buf, bytes); 245 - if (!PageCompound(page)) 246 - set_page_dirty_lock(page); 245 + set_page_dirty_lock(page); 247 246 } else { 248 247 copy_from_user_page(vma, page, addr, 249 248 buf, maddr + offset, bytes);