From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EDCD3C433DF for ; Fri, 7 Aug 2020 09:13:32 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 68C4F21744 for ; Fri, 7 Aug 2020 09:13:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 68C4F21744 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id EADF78D0096; Fri, 7 Aug 2020 05:13:26 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DF1E88D0026; Fri, 7 Aug 2020 05:13:26 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D09418D0096; Fri, 7 Aug 2020 05:13:26 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0120.hostedemail.com [216.40.44.120]) by kanga.kvack.org (Postfix) with ESMTP id B051B8D0026 for ; Fri, 7 Aug 2020 05:13:26 -0400 (EDT) Received: from smtpin24.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 6E5FD181AEF00 for ; Fri, 7 Aug 2020 09:13:26 +0000 (UTC) X-FDA: 77123209212.24.bead29_20150fa26fbf Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin24.hostedemail.com (Postfix) with ESMTP id 43D961A4A5 for ; Fri, 7 Aug 2020 09:13:26 +0000 (UTC) X-HE-Tag: bead29_20150fa26fbf X-Filterd-Recvd-Size: 2094 Received: from out30-56.freemail.mail.aliyun.com (out30-56.freemail.mail.aliyun.com [115.124.30.56]) by imf04.hostedemail.com (Postfix) with ESMTP for ; Fri, 7 Aug 2020 09:13:23 +0000 (UTC) X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R211e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01419;MF=richard.weiyang@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0U5.Rnug_1596791595; Received: from localhost(mailfrom:richard.weiyang@linux.alibaba.com fp:SMTPD_---0U5.Rnug_1596791595) by smtp.aliyun-inc.com(127.0.0.1); Fri, 07 Aug 2020 17:13:15 +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 00/10] mm/hugetlb: code refine and simplification Date: Fri, 7 Aug 2020 17:12:41 +0800 Message-Id: <20200807091251.12129-1-richard.weiyang@linux.alibaba.com> X-Mailer: git-send-email 2.20.1 (Apple Git-117) MIME-Version: 1.0 X-Rspamd-Queue-Id: 43D961A4A5 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam04 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000427, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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 !=3D 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(-) --=20 2.20.1 (Apple Git-117)