diff options
author | Wei Yang <richard.weiyang@linux.alibaba.com> | 2020-10-14 02:56:33 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-10-14 04:38:34 +0300 |
commit | 15a8d68e9dc23dc9def4bd7e9563db60f4f86580 (patch) | |
tree | 04bd3435a682f32e70ae01dd14a936e97edda7e0 | |
parent | 972a3da355c947283f3d88fd1764f001730206f9 (diff) | |
download | linux-15a8d68e9dc23dc9def4bd7e9563db60f4f86580.tar.xz |
mm/hugetlb: a page from buddy is not on any list
The page allocated from buddy is not on any list, so just use list_add()
is enough.
Signed-off-by: Wei Yang <richard.weiyang@linux.alibaba.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Baoquan He <bhe@redhat.com>
Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Link: https://lkml.kernel.org/r/20200831022351.20916-6-richard.weiyang@linux.alibaba.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | mm/hugetlb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 31586a1e70b5..a3aea2c1181b 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -2416,7 +2416,7 @@ struct page *alloc_huge_page(struct vm_area_struct *vma, h->resv_huge_pages--; } spin_lock(&hugetlb_lock); - list_move(&page->lru, &h->hugepage_activelist); + list_add(&page->lru, &h->hugepage_activelist); /* Fall through */ } hugetlb_cgroup_commit_charge(idx, pages_per_huge_page(h), h_cg, page); |