Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2070305pxa; Fri, 7 Aug 2020 02:15:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz55vK4I7dZN9YD9+/oLL4YCk8oUjOtR21OOblB8PUdhixwlKWxndKhL6y7Hj0oYQp7PHi6 X-Received: by 2002:a50:d655:: with SMTP id c21mr7695328edj.49.1596791733046; Fri, 07 Aug 2020 02:15:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596791733; cv=none; d=google.com; s=arc-20160816; b=FrK1001u+f/HI12m5Qm1jctG+HxFl1mZi0x4dBOOantpyUwq1CFADW9ckW4yzo0FEV Md6LO+ndlBLAZJYYgi6Bs6CvESO+pVFpE1DEpn1ExECGwhFseQW/hG40ST1GIdCaDIeI 5HTQYzUbu2mwWxicoX2jI8n3exe+N6R/n4Mcf6BkuS0l4mlXd9fjO54R8pEC0kc4T00w I/+6m2een0Yzcge8hruMG6SxiYNrjmubfjcFGmmBsCSM/BWOvShqrvAw5kfsMKs5gpDO /NoglPKR+PUwUHpBkYGYjrm0BYF8jhYX1+4/2Un7xKsWwEbDzYJiRH7i7ZMMXKFzGkO1 k9bA== 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 :message-id:date:subject:cc:to:from; bh=PR16WqSiDAly2BCI6z/p2Y+LqCcFjcwJg2OC4fGIvHA=; b=SWk4l6F6e+NBrVrsHTr1aFXRGOUGj6ZN3hzZi13ZqFyu956OPLnSTfHjyyBBfpwqhj ryjouttiu6JZCgDwHWGxSwcg+ylmASIwcimRvuM2SJPliuCn1nmNsPdE4o6kA7MqVRLu XNKj3Ka3aiAA0Hb+Iw8dWc0Wwk1R+4ElcaW7nZhMRNzbly1wY99qO4YiE7wzzN+I/IbN D7vCuYOn5/PWR/F6DqLwk3nLYRZ3HJZGYEP/iA3y3ZqBA41HQV8y8jIsc59VGYEoAYSy qeGCpGFICywXvTv71Z4sfxHYWGK7qXyGXV6lq0cYmRhwx8miVpApffL6kQpfr2KkupBu MYjA== 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 y10si4951487edu.397.2020.08.07.02.15.10; Fri, 07 Aug 2020 02:15:33 -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 S1728055AbgHGJNb (ORCPT + 99 others); Fri, 7 Aug 2020 05:13:31 -0400 Received: from out30-132.freemail.mail.aliyun.com ([115.124.30.132]:59972 "EHLO out30-132.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727054AbgHGJN3 (ORCPT ); Fri, 7 Aug 2020 05:13:29 -0400 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 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.20.1 (Apple Git-117)