mm: hugetlb_vmemmap: remove redundant list_del()
authorMuchun Song <songmuchun@bytedance.com>
Thu, 27 Oct 2022 03:36:41 +0000 (11:36 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 30 Nov 2022 23:58:40 +0000 (15:58 -0800)
commit1cc53a047b0b9389c2d8f4a69499c6135572f23e
treefcd631b7e489f6008408625889d40ee08625cb94
parentd302c2398ba269e788a4f37ae57c07a7fcabaa42
mm: hugetlb_vmemmap: remove redundant list_del()

The ->lru field will be assigned to a new value in __free_page().  So it
is unnecessary to delete it from the @list.  Just remove it to simplify
the code.

Link: https://lkml.kernel.org/r/20221027033641.66709-1-songmuchun@bytedance.com
Signed-off-by: Muchun Song <songmuchun@bytedance.com>
Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/hugetlb_vmemmap.c