From patchwork Thu Apr 13 14:34:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiongwei Song X-Patchwork-Id: 13210355 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 36F91C77B6E for ; Thu, 13 Apr 2023 14:35:35 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6E2C76B0075; Thu, 13 Apr 2023 10:35:34 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6933B900003; Thu, 13 Apr 2023 10:35:34 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5A92A900002; Thu, 13 Apr 2023 10:35:34 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 49F5F6B0075 for ; Thu, 13 Apr 2023 10:35:34 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 14E10C0296 for ; Thu, 13 Apr 2023 14:35:34 +0000 (UTC) X-FDA: 80676616188.16.BB2D583 Received: from pv50p00im-ztdg10011301.me.com (pv50p00im-ztdg10011301.me.com [17.58.6.40]) by imf28.hostedemail.com (Postfix) with ESMTP id 435C2C0018 for ; Thu, 13 Apr 2023 14:35:31 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=me.com header.s=1a1hai header.b=IbVEGk91; dmarc=pass (policy=quarantine) header.from=me.com; spf=pass (imf28.hostedemail.com: domain of sxwjean@me.com designates 17.58.6.40 as permitted sender) smtp.mailfrom=sxwjean@me.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1681396531; 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-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=ZRwoNHCg3Qd6/SU6rWpni4uie/z3q0bDcBsHnvyXoD0=; b=JsKJCrh0D4eAc8OnckqJMguer9ribrS0i8vmPFNp9vIrxslmS1cQVoumt74oqTeysRIx94 KpeEjbz9Z2McAihyrDwFP09qpbGBS2wGOrjnopBT21l2xFozZUTGcpVIIp+oadwyGF7PRa etOBkErM5ip0obZk33aI3rbLJnItOJQ= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=me.com header.s=1a1hai header.b=IbVEGk91; dmarc=pass (policy=quarantine) header.from=me.com; spf=pass (imf28.hostedemail.com: domain of sxwjean@me.com designates 17.58.6.40 as permitted sender) smtp.mailfrom=sxwjean@me.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1681396531; a=rsa-sha256; cv=none; b=6aZfYv5ul8hgQ0Ww9g3lRxlA3zLDaSf2pveNHEFL3oVny4h6ZsMIWnMkqyIjtYWa2stLsU L25LqgSWX2yqggQVvQWVf5qG3m/mGHXZE7xg/ty4rvJAt7XjKM3RmnXEGkeo1sQVGwMnOq lWdD4DprooxCFwXT4jb5eOzGQmtUFEg= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1681396529; bh=ZRwoNHCg3Qd6/SU6rWpni4uie/z3q0bDcBsHnvyXoD0=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=IbVEGk91ztnZ+47BMUBsxTxOYRUaYXQM3xw1MUyNnvMBeNMgpH8n0hqp5WqJ9llvv VwTWDZesBKLMI8xU3zlvRAztgafz8YArYnW4yg3knQ+q3tqSskC6vrtjrKSVeMo188 1VP5F/OisCKxZwgA22Yob7qMlkXKZJR4eB2VuTnX+a5uVP9xk/JGvIc4WRjUCtWFOH CrLSbmDL9K6QQqY0r9xJWZ24N5XNVVp7hBahkY6aBLpem7uWdTHFOCTbKg6dOlCAKv cAQs4MG0ibFSP63WAPHIWbN4R1teZXsPZ2jWt2VB/+H0gONtXIiRF/ZB5BTbmBK/t1 nvhigtdx8NYVA== Received: from xiongwei.. (pv50p00im-dlb-asmtp-mailmevip.me.com [17.56.9.10]) by pv50p00im-ztdg10011301.me.com (Postfix) with ESMTPSA id D5867180940; Thu, 13 Apr 2023 14:35:23 +0000 (UTC) From: sxwjean@me.com To: cl@linux.com, penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, akpm@linux-foundation.org, vbabka@suse.cz, roman.gushchin@linux.dev, 42.hyeyoo@gmail.com, keescook@chromium.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, Xiongwei Song Subject: [PATCH 0/5] Some tiny clean ups for SLUB Date: Thu, 13 Apr 2023 22:34:47 +0800 Message-Id: <20230413143452.211250-1-sxwjean@me.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Proofpoint-GUID: Fyx9MUGIrZKbkGwvJjlWiGQSd2t9Nin6 X-Proofpoint-ORIG-GUID: Fyx9MUGIrZKbkGwvJjlWiGQSd2t9Nin6 X-Proofpoint-Virus-Version: =?utf-8?q?vendor=3Dfsecure_engine=3D1=2E1=2E170-?= =?utf-8?q?22c6f66c430a71ce266a39bfe25bc2903e8d5c8f=3A6=2E0=2E517=2C18=2E0?= =?utf-8?q?=2E883=2C17=2E0=2E605=2E474=2E0000000_definitions=3D2022-06-21=5F?= =?utf-8?q?08=3A2022-06-21=5F01=2C2022-06-21=5F08=2C2020-01-23=5F02_signatur?= =?utf-8?q?es=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 phishscore=0 clxscore=1011 bulkscore=0 malwarescore=0 adultscore=0 suspectscore=0 mlxlogscore=526 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2304130130 X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 435C2C0018 X-Stat-Signature: r5c4twa6c91mmgbn6muuupq88gmzbyqn X-HE-Tag: 1681396531-21967 X-HE-Meta: U2FsdGVkX18XTlM7NwgKWJqfHa4dlHHFQQbyCSsZidzNDW+Y2madM3TieO0oeS4cn0heztvJD+a6K/o1IfgiUjEemF5f5e1njrYOqGrqiNyXyYgy0VI+lMh9XxS1b2Iv023gF43ptla1kyFv2VeicEJoje39N9tpIpMPPIGRFwxN0+5PVRYElLYvttn17T4SKHs96uiPxLCxkBN/f6Nm0Yn5YlaAh8Cbx8+rKu0VhwjwWJm3Ykck/0zrr1zs/3dZdYZ4Wde+yaRUuahDDce50aTrqEkxIcFAa0uPf/CpBUPlcByhyBkz4tmQCNO2JIPD20J6o8Xn2gKeO92MIxYMvJu93XN5s2Ieq5UgdUxYmdXerrkXI9fgq1v2IiAtRQtv5ZcjxX46+20Nu+IYUTnXCe9yxDParWQHbnNJ+Dwi2iE5Td0WS3eFm34mN0O/IiUoCyeV4okiv5oEUL+Tr0oCso6VgEj36TXNkvVjkT+2Ig0drrFndsPd+BLY4wwDN29VEYTXbjAun3NnPvB1Z+4C03i7defG6SP8HNnFJUAU0XzGW8mezyQyYCQ2I23fUabsMQW4wQDH97i7WsYX9/sb/A85W4Zzy/YDJnGwB/X4R/1T5pgGkUBcuT/HwOgYoaqsNZQyg9SUtb9DWJeKEgn905K+prxjpWOnAU1W64/mzg3Lvf1esJ887jIsqMUCL2VMMjrLqsVcLo0rmB8F9oBW2z8Q7kU6Jv5YJtRGjdPAVh/sHz/WPdhbOFT6euNq+QkP+hX2BJt7BPiVa05m7Ea7Bm0jSkK9Lvpre62kQwYmutG5/OVkMrYAF3y8ixpVw4w+LhW3Wr8Mro3nyPitIw2XtgtWR5sGKS2AyWmbRO6mbyL/uol89i7RcW11W9qysQB35JlVbASyasvNSpGepqpIqhubrg7MiQ+PzNt6IxAXp5HQ/6n/lV5Z/nBgsCKULV0i6RUe0zWFnEnkEvfaRKq BLM1LPOd v7rYzHhPUAi9nNTe3iaNQ+C+yZkiOzB5Ns0wboxgTNLX6icpWTxk9yBKlzogkx22pRVG+AGyJZyQ+5dy9STAMbuioRtFsX4ILDxM1JKEcfLyX8jsvVHPyTREFH9S/n1zf2bcMysdi4PFgkOIPlgE/lykyGYQ/P69Rsj+iQ8Jv3EgaKcz7vWoUkZ2KybKD36th7Rv24IydVkSBAZYK8JrennMUSIWboWz79gRq1YX2BZxM2wiGCbVxdhoa0MBCkmTD3TFOKFrlAh5EKWVVuFuBsjEb67YQ4I/xsPnfLF+jQGsMT7hkzBxFuIjP5Ei1Fan90wCRJCtX/18aRH00VLwPofWvGOivgHuqKcZs7qBWjfwnABAkgN/ox2cHRwyLvqR0gY1hCVhqhhr3TehlNDKoe5CIpw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000097, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: Xiongwei Song Hi, Just clean ups, no any functionality changed. Thanks for your time. Xiongwei Song (5): slub: Correct the error code when slab_kset is NULL slub: Put objects_show() into CONFIG_SLUB_DEBUG enabled block slub: Remove CONFIG_SMP defined check slub: Remove slabs_node() function slub: Don't read nr_slabs and total_objects directly mm/slub.c | 45 +++++++++++++++++---------------------------- 1 file changed, 17 insertions(+), 28 deletions(-)