Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2594088pxa; Fri, 7 Aug 2020 15:27:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLDxgK1dU5wHQH44kGE+oab1TkIX7l33cFqXPLhyPvtEbsilqsWaL6WSJbAKTTVN9Nza3Z X-Received: by 2002:aa7:c889:: with SMTP id p9mr11050177eds.105.1596839257319; Fri, 07 Aug 2020 15:27:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596839257; cv=none; d=google.com; s=arc-20160816; b=MoaE6/aqyTyJAnBuy1tSOj7sdAkGx4/ckBQuIjBBxIGWNtnkU70HthDxCPYyUfJCdZ zGSYVtjZt7QRXFrVBexD4AN9u/rPWon7G75hayoxeNP2HPJSL11BSlzaFVZWYxHB9cdA YCA9C7pR4kjx6bK4mVwu0PVrP+VX2+FyKjy6uOhi4oCC8n8lb1pr86p0AHPLtFOMN5GE Devw4PjMuiQHyko6bj56xE1BXBnCtsdacvVgB5W11SYBWjmAHRPuRzp3tT84wzthJeXK G3TBZgNRr18pXmbtuQXAlsOEOtrdEk5HLoIOaRVYakTX3LiFn8TPibs4Xynbpy/O9CEE bIow== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=oPFJKyZLYAc3VzVUyvou3SVCM5tsGRrnygBBMWBaWi8=; b=fuj1aj065NmsXPRzFF5PaXVDQ/ffogjraye2zuaUizG7w1JmArmpb8w53E9JICbNRa pwkaIzyzOuseqNG74u/bGBFKPRS9mLl+hSkNPvBzprl7ahCcMdMtMDxbLwdONONkmnKE wmbg7ITtqZZeB1W0mQQzw/j601+ipD4dDqK/yFn5Mlytq6jCsHcslG70Btc6a4rOPdR2 H5APeECf+Ow47BkrXVcwKt057JIzK0NB9trZYztl14AAaqPi0WeTofZ8zBfOjrplp6Am 3krgFqytczOGVOqRZrr/VXlBx7rhHwrqUHlT/po05Uj+C/OdtJnwgu91kS4FoxygnBEB 1tXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=JqfkR9u7; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w18si6780997edl.306.2020.08.07.15.27.14; Fri, 07 Aug 2020 15:27:37 -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; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=JqfkR9u7; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726212AbgHGWZ4 (ORCPT + 99 others); Fri, 7 Aug 2020 18:25:56 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:56160 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726015AbgHGWZ4 (ORCPT ); Fri, 7 Aug 2020 18:25:56 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 077MNFKR166634; Fri, 7 Aug 2020 22:25:47 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=oPFJKyZLYAc3VzVUyvou3SVCM5tsGRrnygBBMWBaWi8=; b=JqfkR9u7pcoIxTZRu7RsIlMJmdCvxLOfvLfMLzJWds90cTGFcBigcS6dYE6ypx95mni7 Mpi8AGY7JIuIZkHBc/4bAIUjNl9z7Ae/4gcMyrMhqqTPlRsfIAmqEQ9YJoBoN3EeJBTZ rtLHe8A9fHoHc1k+w/+l4bGLDJPW0cPJByzloQ9aGK+w/FM3tOv+y38fc3C9UlcAraEf WTm8lICr3nnV7lv02oiIlc3gbBPu6kfHRVdPAr5q6CH8c7UB036cMhF7uY9y0r8Hh+Hf gNWwE8CM/4Lmytdb6aaQNl/8wpQ73BgM3mgx5xjEtNWBjSVxBBoAfukdZ+Uu8YPR57BC cg== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2120.oracle.com with ESMTP id 32r6fxtwjh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 07 Aug 2020 22:25:47 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 077MO2tO122450; Fri, 7 Aug 2020 22:25:47 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userp3030.oracle.com with ESMTP id 32r6cygxjy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 07 Aug 2020 22:25:47 +0000 Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 077MPjmM026290; Fri, 7 Aug 2020 22:25:45 GMT Received: from [192.168.2.112] (/50.38.35.18) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 07 Aug 2020 22:25:45 +0000 Subject: Re: [PATCH 00/10] mm/hugetlb: code refine and simplification To: Wei Yang , akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20200807091251.12129-1-richard.weiyang@linux.alibaba.com> From: Mike Kravetz Message-ID: <5b954f2d-0b51-c3bd-db8a-610580272d3d@oracle.com> Date: Fri, 7 Aug 2020 15:25:44 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200807091251.12129-1-richard.weiyang@linux.alibaba.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9706 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 mlxscore=0 bulkscore=0 spamscore=0 adultscore=0 mlxlogscore=999 phishscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2008070151 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9706 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 impostorscore=0 adultscore=0 bulkscore=0 priorityscore=1501 mlxlogscore=999 phishscore=0 lowpriorityscore=0 suspectscore=0 spamscore=0 clxscore=1015 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2008070151 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/7/20 2:12 AM, Wei Yang wrote: > Following are some cleanup for hugetlb. > > Simple test with tools/testing/selftests/vm/map_hugetlb pass. > > Wei Yang (10): > mm/hugetlb: not necessary to coalesce regions recursively > mm/hugetlb: make sure to get NULL when list is empty > mm/hugetlb: use list_splice to merge two list at once > mm/hugetlb: count file_region to be added when regions_needed != NULL > mm/hugetlb: remove the redundant check on non_swap_entry() > mm/hugetlb: remove redundant huge_pte_alloc() in hugetlb_fault() > mm/hugetlb: a page from buddy is not on any list > mm/hugetlb: return non-isolated page in the loop instead of break and > check > mm/hugetlb: narrow the hugetlb_lock protection area during preparing > huge page > mm/hugetlb: not necessary to abuse temporary page to workaround the > nasty free_huge_page > > mm/hugetlb.c | 101 ++++++++++++++++++++++----------------------------- > 1 file changed, 44 insertions(+), 57 deletions(-) Thanks Wei Yang! I'll take a look at these next week. -- Mike Kravetz