From patchwork Mon Oct 24 08:14:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoquan He X-Patchwork-Id: 13016808 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id DA75EFA373D for ; Mon, 24 Oct 2022 08:14:49 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4CCFB8E0002; Mon, 24 Oct 2022 04:14:49 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 47CC88E0001; Mon, 24 Oct 2022 04:14:49 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 36BAD8E0002; Mon, 24 Oct 2022 04:14:49 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 277EE8E0001 for ; Mon, 24 Oct 2022 04:14:49 -0400 (EDT) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 027DB1A0155 for ; Mon, 24 Oct 2022 08:14:48 +0000 (UTC) X-FDA: 80055131898.27.28CD14A Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf22.hostedemail.com (Postfix) with ESMTP id 667D1C000F for ; Mon, 24 Oct 2022 08:14:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1666599287; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=44cZmrRUYKd8kbBbqHcKNXFtZXAyzTbLTE72fc+7sfs=; b=edx/Mq/b9BtqJD1GxqBNKkxR2WTfvQr31ajCU0W/yxfdJv2cRPXp/ufswCEK9BqrnnC2MQ Yl7VBSpsXiv+SSCOAY7m0vfaur/vvDi9SD1c1VK0sUhveMbvwIakuOphK9GerxDW9sIO+K 4WNVxxT/L1VOcn5lWlGFOQCEdSgQ4Lw= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-67-iFjvOs_BP1Wx4mxaeEbGnA-1; Mon, 24 Oct 2022 04:14:43 -0400 X-MC-Unique: iFjvOs_BP1Wx4mxaeEbGnA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 78808811E84; Mon, 24 Oct 2022 08:14:42 +0000 (UTC) Received: from MiWiFi-R3L-srv.redhat.com (ovpn-12-35.pek2.redhat.com [10.72.12.35]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2FE7140C6F9F; Mon, 24 Oct 2022 08:14:38 +0000 (UTC) From: Baoquan He To: linux-kernel@vger.kernel.org Cc: Dennis Zhou , Tejun Heo , Christoph Lameter , Andrew Morton , linux-mm@kvack.org, Baoquan He Subject: [PATCH 0/8] Cleanup and optimization patches for percpu Date: Mon, 24 Oct 2022 16:14:27 +0800 Message-Id: <20221024081435.204970-1-bhe@redhat.com> MIME-Version: 1.0 Content-type: text/plain X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1666599288; a=rsa-sha256; cv=none; b=naBXu8VPVPT3KymW3avTPOWzWpxwQpvAmcSchXROceyQbEDe20ZPDRIkPaSOhlRRrBzmuB dDWlqdHO1Y/hKUZWJgpkYhA+EyDPlnB8I2isDCtpiBg1BufraZuSxNl6bTo6qAEdbkortc Vd0VMAdfCQVNVj3Gtr7e1IGSHVmEJ1A= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b="edx/Mq/b"; spf=pass (imf22.hostedemail.com: domain of bhe@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=bhe@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1666599288; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=44cZmrRUYKd8kbBbqHcKNXFtZXAyzTbLTE72fc+7sfs=; b=lPAPUydFHNB3hMM5JqOGuekyBWidTz6MnNJ07FOdgf6AMWYpEIAnjS15mJpI6bIn80wbvr V5dqX7reW99lEWu1eYYIxLcIfeBB/cHffb4HiZ3BQlM8DrLNqy14J+DPT6cQokxL9yq3po WkcZsGVdyKS2hWsjG6AKrqVR0torsSA= Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b="edx/Mq/b"; spf=pass (imf22.hostedemail.com: domain of bhe@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=bhe@redhat.com; dmarc=pass (policy=none) header.from=redhat.com X-Stat-Signature: jmu6uy3rd8j6hdyxqy58tf5dydmq8wgd X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 667D1C000F X-Rspam-User: X-HE-Tag: 1666599288-690687 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: These were found out when reading percpu code, and queued in my local branch for long time. Send them out for reviewing. Baoquan He (8): mm/percpu: remove unused pcpu_map_extend_chunks mm/percpu: use list_first_entry_or_null in pcpu_reclaim_populated() mm/percpu: Update the code comment when creating new chunk mm/percpu: add comment to state the empty populated pages accounting mm/percpu: replace the goto with break mm/percpu.c: remove the lcm code since block size is fixed at page size mm/percpu: remove unused PERCPU_DYNAMIC_EARLY_SLOTS mm/slub, percpu: correct the calculation of early percpu allocation size include/linux/percpu.h | 7 +++---- mm/percpu.c | 44 +++++++++++++++++------------------------- mm/slub.c | 3 ++- 3 files changed, 23 insertions(+), 31 deletions(-)