diff options
author | Mike Kravetz <[email protected]> | 2021-11-05 13:42:04 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2021-11-06 13:30:39 -0700 |
commit | 2c0078a7d820e55ce6a176721a94f3c585833436 (patch) | |
tree | a5dcac64a8703442bac48dc867f391684616a005 /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | 76efc67a5e7a3dc1226c4ad1b266a15741347031 (diff) |
hugetlb: remove unnecessary set_page_count in prep_compound_gigantic_page
In commit 7118fc2906e2 ("hugetlb: address ref count racing in
prep_compound_gigantic_page"), page_ref_freeze is used to atomically
zero the ref count of tail pages iff they are 1. The unconditional call
to set_page_count(0) was left in the code. This call is after
page_ref_freeze so it is really a noop.
Remove redundant and unnecessary set_page_count call.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 7118fc2906e29 ("hugetlb: address ref count racing in prep_compound_gigantic_page")
Signed-off-by: Mike Kravetz <[email protected]>
Suggested-by: Pasha Tatashin <[email protected]>
Reviewed-by: Pasha Tatashin <[email protected]>
Reviewed-by: Matthew Wilcox (Oracle) <[email protected]>
Reviewed-by: Oscar Salvador <[email protected]>
Reviewed-by: Muchun Song <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions