diff options
author | Steven Truelove <[email protected]> | 2012-03-21 16:34:14 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2012-03-21 17:54:59 -0700 |
commit | 40716e29243de46720e5773797791466c28904ec (patch) | |
tree | 19616ad05cbead73d0643b002a7ced8baa292ee2 /tools/perf/scripts/python/sctop.py | |
parent | 21a3c273f88c9cbbaf7e14505df0131d95c8f262 (diff) |
hugetlbfs: fix alignment of huge page requests
When calling shmget() with SHM_HUGETLB, shmget aligns the request size to
PAGE_SIZE, but this is not sufficient.
Modify hugetlb_file_setup() to align requests to the huge page size, and
to accept an address argument so that all alignment checks can be
performed in hugetlb_file_setup(), rather than in its callers. Change
newseg() and mmap_pgoff() to match the new prototype and eliminate a now
redundant alignment check.
[[email protected]: fix build]
Signed-off-by: Steven Truelove <[email protected]>
Cc: Hugh Dickins <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions