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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D3EC4ECAAA3 for ; Fri, 26 Aug 2022 09:24:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343663AbiHZJY4 (ORCPT ); Fri, 26 Aug 2022 05:24:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237130AbiHZJYy (ORCPT ); Fri, 26 Aug 2022 05:24:54 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FB26399D5 for ; Fri, 26 Aug 2022 02:24:53 -0700 (PDT) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4MDZ8Z1yWpzlWS7; Fri, 26 Aug 2022 17:21:34 +0800 (CST) Received: from huawei.com (10.175.124.27) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Fri, 26 Aug 2022 17:24:51 +0800 From: Miaohe Lin To: , , CC: , , Subject: [PATCH 00/10] A few cleanup patches for hugetlb Date: Fri, 26 Aug 2022 17:24:12 +0800 Message-ID: <20220826092422.39591-1-linmiaohe@huawei.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.124.27] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi everyone, This series contains a few cleanup patches to use helper functions to simplify the codes, remove unneeded nid parameter and so on. More details can be found in the respective changelogs. Thanks! Miaohe Lin (10): hugetlb: make hugetlb_cma_check() static hugetlb: Use helper macro SZ_1K hugetlb: Use LIST_HEAD() to define a list head hugetlb: Use sizeof() to get the array size hugetlb: Use helper {huge_pte|pmd}_lock() hugetlb: pass NULL to kobj_to_hstate() if nid is unused hugetlb: kill hugetlbfs_pagecache_page() hugetlb: remove unneeded SetHPageVmemmapOptimized() hugetlb: remove meaningless BUG_ON(huge_pte_none()) hugetlb: make hugetlb selects SYSFS if !SYSCTL fs/Kconfig | 1 + include/linux/hugetlb.h | 4 ---- mm/hugetlb.c | 52 +++++++++++++++-------------------------- 3 files changed, 20 insertions(+), 37 deletions(-) -- 2.23.0