Message ID | 20230413143452.211250-4-sxwjean@me.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 49435C77B6E for <linux-mm@archiver.kernel.org>; Thu, 13 Apr 2023 14:35:54 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DC082900002; Thu, 13 Apr 2023 10:35:53 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D716B6B007E; Thu, 13 Apr 2023 10:35:53 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C38DB900002; Thu, 13 Apr 2023 10:35:53 -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 B40C16B007D for <linux-mm@kvack.org>; Thu, 13 Apr 2023 10:35:53 -0400 (EDT) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 60FE21A027E for <linux-mm@kvack.org>; Thu, 13 Apr 2023 14:35:53 +0000 (UTC) X-FDA: 80676616986.01.EAC1E3D Received: from pv50p00im-ztdg10011301.me.com (pv50p00im-ztdg10011301.me.com [17.58.6.40]) by imf22.hostedemail.com (Postfix) with ESMTP id 52975C0025 for <linux-mm@kvack.org>; Thu, 13 Apr 2023 14:35:51 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=me.com header.s=1a1hai header.b="xO/T7yXe"; spf=pass (imf22.hostedemail.com: domain of sxwjean@me.com designates 17.58.6.40 as permitted sender) smtp.mailfrom=sxwjean@me.com; dmarc=pass (policy=quarantine) header.from=me.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1681396551; 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:in-reply-to:references:references:dkim-signature; bh=JAgRIwnVPHjbTYshg0Cq1C5avnVLUoxXJ3pl2kvDPSY=; b=n/n3jXeT5wkpUifLVTqEHbxuijD3hvi77O0ulwmvDpa4VzB1oSd0k+lyvG7l3kkHHXQaUd 9ep1mXoIdtEz2xu+vZWHJUuaKi+o4XzVwNLMemCs4q6rhrWoJpO/Wkc5Z5t9Kh11dyXaOq YbwDck9yAbw+zOl/piql7EpcNmLzVTs= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=pass header.d=me.com header.s=1a1hai header.b="xO/T7yXe"; spf=pass (imf22.hostedemail.com: domain of sxwjean@me.com designates 17.58.6.40 as permitted sender) smtp.mailfrom=sxwjean@me.com; dmarc=pass (policy=quarantine) header.from=me.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1681396551; a=rsa-sha256; cv=none; b=54M7PZ87vbwhknSVdxnbq50vWb4Hajziu801zjK0fK9S/2AqJRSpRtPSXsbNcWKJN74HtJ aSguPhlZmMUvwVr76pv/w5KxEX7K9NlrxXALWzs5s5BImmgA0YMsii+mSg4A7ySjQjR4OH gQOO3WwxM7h0CXDm1W4k4AZ+eRODptM= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1681396550; bh=JAgRIwnVPHjbTYshg0Cq1C5avnVLUoxXJ3pl2kvDPSY=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=xO/T7yXeroPIvZvyiZbh8x1/X/oIWsBNuf3i2Jxqpee4hQabZaqIUSllys6W3vKOm fhBd5rqPfi0VHzmUG9xcCqs8YguaGRJxQfSBNX2RKZgR3Tlwc58xclavJ+aEuMUzDp e+MMrxFCGJH3sSBXM1INcprrw70wNtK4REsFYbv98wbX7EM8cHX+lQQUUVBqFY7Dq6 /ezTu0fwfSbI+qIgj5EbOxPknN9Z23QwKU4ckcDnydsfIrNH1Ov3I9Qa1QnevgbUFT /Y/EKM+m8TSExEgq4Ox2jjM0CBZTPFZL/jgPmrlbTSuScAJTlidSuIG7euqikTjLSx IuTLBj7bt7/LA== Received: from xiongwei.. (pv50p00im-dlb-asmtp-mailmevip.me.com [17.56.9.10]) by pv50p00im-ztdg10011301.me.com (Postfix) with ESMTPSA id BE746180985; Thu, 13 Apr 2023 14:35:43 +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 <xiongwei.song@windriver.com> Subject: [PATCH 3/5] slub: Remove CONFIG_SMP defined check Date: Thu, 13 Apr 2023 22:34:50 +0800 Message-Id: <20230413143452.211250-4-sxwjean@me.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230413143452.211250-1-sxwjean@me.com> References: <20230413143452.211250-1-sxwjean@me.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-GUID: Y1U1vCSTKtKD3BAtj30KeORsRiE5ZfNE X-Proofpoint-ORIG-GUID: Y1U1vCSTKtKD3BAtj30KeORsRiE5ZfNE 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=1015 bulkscore=0 malwarescore=0 adultscore=0 suspectscore=0 mlxlogscore=980 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2304130130 X-Stat-Signature: cpd4fyc9fg58xuctej87tq5f315fxr4u X-Rspam-User: X-Rspamd-Queue-Id: 52975C0025 X-Rspamd-Server: rspam06 X-HE-Tag: 1681396551-352849 X-HE-Meta: U2FsdGVkX1+CGTubmbEjuHQyw+JEnKxjQ4Yw8JmsyS4vHMDv5R7hH4hVFOKaurN0Pz6Gq/5qoW3zh1lNZYkWJa1lI48m+TDbHVJZCC61XmDFKw/APbBW1FkeHuY1c4mG0FIJYjGjmhrtW8FgL1udsXopveQD9tsQDIYIIO3sZWD2VkjjdEF3l/Khf+Y1Blp29DAJSqp3NiOeUj5KK2ywWBZOsMHr5Tc6pM9RwvNyY8QWYe40IapFvIhr3VHzj1mNwGeFiiG6ZzopAwr6nLgcbk9iwmAWR6e4jwrmiVo4Giwj3Yw7hRNvL6vCqPThryk1mH+Rmopwdw9myCJJ30cF/4ivBN0p9ggQtY60P/hbzLoKdVsi80nNuCUftTGErfkkkbeZ3Erq4ncpFzjnwbJ7fPFDKhfhIQqQ8RdlluRzC3ojGa88NOPwWZS0Z43dwi4vHwhyKQmsv0lknami+nis0RDJ2Y1ynb77ni4rAipGRGawbAe8wd3QIwtq5wdxGUa97PDC5MlDJlOVQAQ+gdmNn7LPglDnGT2NKR/Y7nYLx/v8lMKbPLdcueNkY1lLOPTezjYN3buXiZ0HDxiL4RzA4ODchqIEU1mzohN7NTBvxI6XdqEv7oAxqSUPv78yGwpzMr1//IHlsMDWowoo9m37Clst0W5nngZ9JG9BfSx0KuEiXnThgQ8CxTgKqNW6lVd3n3hcALaDML/pbwEJYQzOVQRPJ/CvAvZkn4cJSCAiPl5QrUc7WV4aMcyqgBkX3hwBiTwEMccehNksqv7o1TTGhuSPkWlAruog0XPkJNVFS+mXXoIohGymDncORBD5pASHDdvzbuJTRsT1Q11+mUhLt1qRnf1yu8crsClVOTg46mabyImPQ1X1KsKi05Q5yFuPseet8e7F7YxDvx9eOqnjWtMBQVXlnDLlzo6y7X2HvTGGXbZOwg9WnbpbuPqzkKPiG8XJBYh6hxxwjvUd/sn qZ62yyvf T6LN/2FST8Zs9YqFhDKej+a4H1e93aVhJTo/uM9AibUSCMOQ6fjkueS9OvN6H7B38+JQhhCfB/pOg+3uTDiUByH6iuao5dHkpOmf+M/ZIpI1Z67isIrTLH/KgwDueAXhtuJGQ9zq+7BhG8MaQ48C09v5vVaO7fQcvFKiBHtdlZdIkL9QI493eWWB8p+/jazbRkMXGpNI55WA4YGjhvFEdfO7kcGu2VjaQEQ2Ms6Q6n7LH0SlKrSDM6zyXwqLbrdu7MVAnBM7sXdZxJehAWKQD03e6uVSbKCJU13a10Tf6YRX0NKzcOAXyVeYA+Q58C3sh1H5BMl7TCw1MxNn/C/RL8Bb8o9634gjTqXhIB+6jlIVUt4hb8b1oqacAkO3eybTaLWpqOesWVi4Z1v9MwKpXx9LqvQ== 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: <linux-mm.kvack.org> |
Series |
Some tiny clean ups for SLUB
|
expand
|
diff --git a/mm/slub.c b/mm/slub.c index b8afe12ebba1..d897df8fe7e7 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -5641,7 +5641,7 @@ static ssize_t slabs_cpu_partial_show(struct kmem_cache *s, char *buf) objects = (slabs * oo_objects(s->oo)) / 2; len += sysfs_emit_at(buf, len, "%d(%d)", objects, slabs); -#if defined(CONFIG_SLUB_CPU_PARTIAL) && defined(CONFIG_SMP) +#ifdef CONFIG_SLUB_CPU_PARTIAL for_each_online_cpu(cpu) { struct slab *slab;