-
由 Mike Kravetz 提交于
In commit 7118fc29 ("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/20211026220635.35187-1-mike.kravetz@oracle.com Fixes: 7118fc29 ("hugetlb: address ref count racing in prep_compound_gigantic_page") Signed-off-by: NMike Kravetz <mike.kravetz@oracle.com> Suggested-by: NPasha Tatashin <pasha.tatashin@soleen.com> Reviewed-by: NPasha Tatashin <pasha.tatashin@soleen.com> Reviewed-by: NMatthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: NOscar Salvador <osalvador@suse.de> Reviewed-by: NMuchun Song <songmuchun@bytedance.com> Signed-off-by: NAndrew Morton <akpm@linux-foundation.org> Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
2c0078a7