Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2070276pxa; Fri, 7 Aug 2020 02:15:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMgWlzOVmcgdQgUYqZ2u3csh+IbYh7ywTY2A9hU/rQfI0YKXBa2WkmLlhZ1sKBwCsVoJIp X-Received: by 2002:a50:f396:: with SMTP id g22mr8051539edm.220.1596791729631; Fri, 07 Aug 2020 02:15:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596791729; cv=none; d=google.com; s=arc-20160816; b=q0t5cSFhi8JjOEr1xjUw6yc8XMcaZDZbXrYH1oshgLKG0ZPAbrPddU2aRLL0dN9D5R d1SvoxFqSaA0I4KaT/pwOZhLaTiRnsOUzL97+kLLadS9LHK/SGkQY1ZwmpdId2f/RVLw rYjUAytp9gs0Yu8Wfgaqlr0FE9gp4yUxIJdHsM1O4dMWHFEdrYzhTJt7/WXWBVO4ttHI fL6VXOOrA3QHrTkidzsWMzi30A5JMpdDCfZvm6hC/KEH4VXzDmbymFHqpIkRTr2nJhD1 wRE0z+kaslX3fRgBr5zLET3JR0LELDHT1TTtmtmSqLHlwuQ+ZqdGGukXqM257lF+Fe3o RBYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=S0JC66v9M7ckb+WRALrGRtsgSa8ivJzuAcu2T447OPw=; b=h17XkncHhn+CdUQdEarv459lWvo/evrUIBjzCEH4BrN9gwzq0QMmIblTjUiiSlgJZz R81VGxxFhAWKuzJtwzO/W0SLQGG9Rin4MgNeFRat/fLfWB3fUA615zJAEWhee2CoZASf cxueVvX/nzLtyCYTsWzMbDMj/ULsAHww0UooDdYiY+AWynGId+RjXBlNuIJcWU5Y5vri 8G3z0dGHZp3qhQs1SEX8RDsE8F7hVo4WdyUNCFdw1nKPrEOI02bSSw8UFXT/Fzbu1QGM uA6VyIMkhhccZ3dC0gpkEZyBYTRLZG5k8RrRmiqXdXYDqFspG+UG3j3ivQcEvPLBzhax g2BQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a25si5324797edn.30.2020.08.07.02.15.07; Fri, 07 Aug 2020 02:15:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728114AbgHGJNi (ORCPT + 99 others); Fri, 7 Aug 2020 05:13:38 -0400 Received: from out30-56.freemail.mail.aliyun.com ([115.124.30.56]:36073 "EHLO out30-56.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727990AbgHGJNZ (ORCPT ); Fri, 7 Aug 2020 05:13:25 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R621e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04394;MF=richard.weiyang@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0U5.HB3w_1596791599; Received: from localhost(mailfrom:richard.weiyang@linux.alibaba.com fp:SMTPD_---0U5.HB3w_1596791599) by smtp.aliyun-inc.com(127.0.0.1); Fri, 07 Aug 2020 17:13:19 +0800 From: Wei Yang To: mike.kravetz@oracle.com, akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Wei Yang Subject: [PATCH 07/10] mm/hugetlb: a page from buddy is not on any list Date: Fri, 7 Aug 2020 17:12:48 +0800 Message-Id: <20200807091251.12129-8-richard.weiyang@linux.alibaba.com> X-Mailer: git-send-email 2.20.1 (Apple Git-117) In-Reply-To: <20200807091251.12129-1-richard.weiyang@linux.alibaba.com> References: <20200807091251.12129-1-richard.weiyang@linux.alibaba.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The page allocated from buddy is not on any list, so just use list_add() is enough. Signed-off-by: Wei Yang --- mm/hugetlb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/hugetlb.c b/mm/hugetlb.c index fb09e5a83c39..b8e844911b5a 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -2430,7 +2430,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); -- 2.20.1 (Apple Git-117)