diff options
| author | KAMEZAWA Hiroyuki <[email protected]> | 2012-01-10 15:07:22 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2012-01-10 16:30:42 -0800 |
| commit | 1e16a539ac16e7b3a8c2cee188897d4bdb88e6e8 (patch) | |
| tree | 12ee5589d6a04d54fc89c7970b6b8e5012d5e74f /tools/perf/scripts/python/syscall-counts.py | |
| parent | ef009b25f4f8a77d2b32067d424d5ac757dcdc5b (diff) | |
mm/hugetlb.c: fix virtual address handling in hugetlb fault
handle_mm_fault() passes 'faulted' address to hugetlb_fault(). This
address is not aligned to a hugepage boundary.
Most of the functions for hugetlb pages are aware of that and calculate an
alignment themselves. However some functions such as
copy_user_huge_page() and clear_huge_page() don't handle alignment by
themselves.
This patch make hugeltb_fault() fix the alignment and pass an aligned
addresss (to address of a faulted hugepage) to functions.
[[email protected]: use &=]
Signed-off-by: KAMEZAWA Hiroyuki <[email protected]>
Cc: KOSAKI Motohiro <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions