diff options
author | Eric Dumazet | 2016-05-21 01:57:53 +0200 |
---|---|---|
committer | Linus Torvalds | 2016-05-21 02:58:30 +0200 |
commit | b8ca9e3a612eaf3e54c6fa136c62246a1a9aece7 (patch) | |
tree | 4738aff27fdf4f88f77deaebd30454f94ea63a44 /mm/swap.c | |
parent | mm, hugetlb_cgroup: round limit_in_bytes down to hugepage size (diff) | |
download | kernel-qcow2-linux-b8ca9e3a612eaf3e54c6fa136c62246a1a9aece7.tar.gz kernel-qcow2-linux-b8ca9e3a612eaf3e54c6fa136c62246a1a9aece7.tar.xz kernel-qcow2-linux-b8ca9e3a612eaf3e54c6fa136c62246a1a9aece7.zip |
mm: tighten fault_in_pages_writeable()
copy_page_to_iter_iovec() is currently the only user of
fault_in_pages_writeable(), and it definitely can use fragments from
high order pages.
Make sure fault_in_pages_writeable() is only touching two adjacent pages
at most, as claimed.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/swap.c')
0 files changed, 0 insertions, 0 deletions