diff options
| author | Naoya Horiguchi <[email protected]> | 2010-09-10 04:23:04 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2010-09-24 00:29:18 +0000 |
| commit | 56c9cfb13c9b6516017eea4e8cbe22ea02e07ee6 (patch) | |
| tree | 1b09c9350d8f48d81514f274a3a1933dc9f1a2ef /tools/perf/scripts/python/check-perf-trace.py | |
| parent | hugetlb, rmap: use hugepage_add_new_anon_rmap() in hugetlb_cow() (diff) | |
| download | kernel-56c9cfb13c9b6516017eea4e8cbe22ea02e07ee6.tar.gz kernel-56c9cfb13c9b6516017eea4e8cbe22ea02e07ee6.zip | |
hugetlb, rmap: fix confusing page locking in hugetlb_cow()
The "if (!trylock_page)" block in the avoidcopy path of hugetlb_cow()
looks confusing and is buggy. Originally this trylock_page() was
intended to make sure that old_page is locked even when old_page !=
pagecache_page, because then only pagecache_page is locked.
This patch fixes it by moving page locking into hugetlb_fault().
Signed-off-by: Naoya Horiguchi <[email protected]>
Acked-by: Rik van Riel <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions
