Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3860201rwl; Mon, 10 Apr 2023 02:09:13 -0700 (PDT) X-Google-Smtp-Source: AKy350ZokYUZ+FUw/CcYaiUlL+MOw0PlxHhyQWEPsNYe44fYmfHnep4pCOAwpr/kko5gCHJMuC2/ X-Received: by 2002:a17:902:ea0c:b0:19a:7758:e5e6 with SMTP id s12-20020a170902ea0c00b0019a7758e5e6mr16411486plg.48.1681117752907; Mon, 10 Apr 2023 02:09:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1681117752; cv=pass; d=google.com; s=arc-20160816; b=Gi07rpQhJGnOi/8SkUjwuuwPxQteJkskRTCN6VDsSiqXkrUGirNKkBiikMDac5Mpvt FPUAmonCN36eG/nRGDK3LEo3Mdly/7j6RrWdWTS6s/3jHlgjdf9DQHDZ4UnDlRRM5jvY Wf6PF4BOCa6lxZ9p0dXP/Uwzf4UINY+JlL5NqKXecxBL6zRrmsD6Y8ZyKEc584t8Pvxp jlZpUALMvb3KJcnrnnguLKKHqFEoFtU1xCR94+Yb2FW58Fd6RN/jF1+l0ZZ0GHwrd6GJ XhGeHzzgyJd9/1h90pkAFimF7+VKPq0TKqHDM/QvKyL8ruhEzWoURzcCvAnafTtN7+lp kJ1Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=TRbUrKpTEjIuMH1C+Oeim/P/WdMGuZBs4i3UveQOTV0=; b=kAlRKeG38qjNSh1IHvuA2Racr/i6/WyBIhByLnZfAOTZMHz0Rp/xborFROZrqrhHv1 AZYsHqEIolDfcQsDJyejIr8dN2ycfYpgx0V5E4Q3M99TRT6kkWfFMc1sDJOTgk4rzyVi pjRUwN6OBdPVqYHDYzqSGaYwfH4iG9SFk/f9Z/uRrVrnnrpnbbKnraMDhzCQ+gvfAZMi 2OSe7eZs95vlZOoRSGszwv4CR1VMpEKHvrieye4fQUVegtyoSPi6PPqhcE/z2k14NmGt MXClMukebxgogBkbZRJWWcTQXpeWqWk7vL17lykTZqtaQ0f/ZFjX4rFeAwBJLM2uR66Y 2Mqg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=gmQmM10M; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q70-20020a632a49000000b0051a6433ad25si1432479pgq.617.2023.04.10.02.09.01; Mon, 10 Apr 2023 02:09:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=gmQmM10M; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229816AbjDJJCK (ORCPT + 99 others); Mon, 10 Apr 2023 05:02:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229801AbjDJJCH (ORCPT ); Mon, 10 Apr 2023 05:02:07 -0400 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11olkn2018.outbound.protection.outlook.com [40.92.19.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A3D92D62 for ; Mon, 10 Apr 2023 02:02:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nwo16Fz7HMV7I6s1Q3EybFhj7bISxKPJI2rY3trYEhQxMhkJrc525DkZj4LWsJBWzxVeOH/I1bH0wXixrq/jcQNienFJcO43illP6ce3CsdXLQdy6LF0qq5gVe2JJsY14n71eB+mkJMxG46xkAejTnW/rboVoLnLNxOYFUdVL5AThQg/Aa3qO+oHGpmsYF7n5dVLgnZEY6GVKrI1qJcRvbG9pzpXdk611W0943bErixaeL4mXFa3BZlQcTaZm2aH7MnhFuuJd9z+wPPhJ6uMXsnH2XjZpwEU0noXbOuvuDhtjPjQd1plF2qdA0/2eIkOv3wQWfg3lRmTMj1F73Ijsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=TRbUrKpTEjIuMH1C+Oeim/P/WdMGuZBs4i3UveQOTV0=; b=k27RhcSIrmD+lv/TWXELQcWMXmNoWa4z6IAQqwO+l+nyItF+Snr3ncIG/tscFYY6dHq4F/+waqDBeowTjSXrweot08wikCbvmsqbH9HOm7ReYiDQ6+t2EuuHgmHPH+VV3/NY92aMCXr6JK/CNh+9Oibge1M/w8e23Y4hp74tak5e42MUPrtn/p/ekGUW8d6sp+C/WerRPesBGK98pHJn3IDMh8/aW6JRsO83Nd0mxWL7GO0IUoEtrCr59GPJZAHm9hqT35cd0U6YdY/rkqjU5Ltc/45sKu1alwP68MFFT/WSfzIfH8bBMFSXn5b8iaOL70o1TJ0jzjWb2dejceriBQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TRbUrKpTEjIuMH1C+Oeim/P/WdMGuZBs4i3UveQOTV0=; b=gmQmM10McAtQAmUVPoNvQYa0LiJHNpm3ak6nSqraaJHnax2asr2ATk4xocYGfO/hUzDrNFpy3bholg5OtggYIWiMOL4u8XcPJ+TLeqnmYfH81MKzOFXRJv2y4NoWGIn36+4JNCxpGPkkRtpPlpzvh7i5fI+a/7miD/gUpSuKu+SBekWrWtfKnJDJiuP5M2/tSZPJI3IKftMI8szrOs5utPk8qeZk9bqpWZ/gRgWaomdcb2NEJYuOriLz9a5Sk//tTxWJrhJbXmeMvJ1YAOFxysZcaADJChmAE8g+DC1PSyeyyVFcRlYwWK9ygd+ItEgbb1QCj10PqullV9UGEU29zA== Received: from DM6PR22MB1836.namprd22.prod.outlook.com (2603:10b6:5:25e::21) by SJ0PR22MB4380.namprd22.prod.outlook.com (2603:10b6:a03:51a::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.38; Mon, 10 Apr 2023 09:02:03 +0000 Received: from DM6PR22MB1836.namprd22.prod.outlook.com ([fe80::4b7e:925f:eeca:488c]) by DM6PR22MB1836.namprd22.prod.outlook.com ([fe80::4b7e:925f:eeca:488c%4]) with mapi id 15.20.6277.035; Mon, 10 Apr 2023 09:02:03 +0000 From: zhaoxinchao To: cl@linux.com, penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, akpm@linux-foundation.org, vbabka@suse.cz, linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: zhaoxinchao Subject: [PATCH] mm: Fixed incorrect comment for _kmem_cache_create function Date: Mon, 10 Apr 2023 17:01:42 +0800 Message-ID: X-Mailer: git-send-email 2.39.2 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-TMN: [FHMU8DzyWEwkc/BXqB510O+Ys6ytbDoB] X-ClientProxiedBy: SJ0PR03CA0051.namprd03.prod.outlook.com (2603:10b6:a03:33e::26) To DM6PR22MB1836.namprd22.prod.outlook.com (2603:10b6:5:25e::21) X-Microsoft-Original-Message-ID: <20230410090142.12442-1-ChrisXinchao@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR22MB1836:EE_|SJ0PR22MB4380:EE_ X-MS-Office365-Filtering-Correlation-Id: 76e91249-5401-44ed-a322-08db39a24096 X-MS-Exchange-SLBlob-MailProps: 02NmSoc12DdnXLGGOuD9rmefhPe+K3xZxO7oA4JCSFWlG+a4c5RJ8YOGX/hEW6T8lBQyg9wVTqgZ//ArmQlyEcdxXPPD56m2NMk8fl4qniUF3EK3dMepxn6tPNnuorArDZGy8Yp+SIV7ZSBv06Hj5N+CLvBUAwd01ceRh7iCFz86OiJxCCqFUBBBkFTfgGfGjKx78fPi6yV4oTRUq3Ei15CIBYINdcQQzYR8mLX9SY72eHVGEYM/mpv+H0mqjyl0LSeNOnFudI0R9JFlNPwzeHseQ+Uc/en7atJpteyvY4XTkkWr47iP5mwoc28w198iCY491f1PEmGUaNhmgfNq/bQtYQTCKu67p8yjNvSzLe+kPBl/gQCFH6q2aLlcKaleAw6RmYXvD/TAq5fhojPA8KkU0i/+/ShzcvnhMht7aqNGLMaYCioXQ3lJIba59st59MGOaC3K1OYlL9xA4lI8boo9VF6INHukd7eXmaISnDdS8iBbbMwUnN7pnaXUc5bFOL5/uClDop+KmSYTefb9bgE+E3qrhepwnk1bE6njUr3mFDf92t9J63baCF7ub/+DRWTBFAnhYlt1Ts3WmRShZ4vC3n9Xza/oFMdwRC8jpT+UFzcyIPXws72WF/HKdcorIVABWcN/gcTF4z3QjwjbPIDV49abe77vZeKiY0o4oBK1Dw0GGX7wxtDIcR0+Vbtxm5F0SvYCo3y5STV0ZJeV3Nn//f2GqGuj8PhmEp7vdCtmsiixgyh2TaVLSCKRu9Fi X-Microsoft-Antispam: BCL:0; X-Microsoft-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/Z+2Erdu9DyDErcUs5f0LGJORvV2vLjiCKAji3WMiWWdNPm/K?= =?us-ascii?Q?1OdfeThZkQhMvQyF4NF42GTPgmuu+4Bo1IKUB1iKZMQVe3X8vRx/u4yWySs?= =?us-ascii?Q?=3D?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 76e91249-5401-44ed-a322-08db39a24096 X-MS-Exchange-CrossTenant-AuthSource: DM6PR22MB1836.namprd22.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Apr 2023 09:02:03.6844 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR22MB4380 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: zhaoxinchao Actually __kmem_cache_create() returns a status : 0 is success others are failed. Signed-off-by: zhaoxinchao --- mm/slab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/slab.c b/mm/slab.c index ca4822f6b..65985f767 100644 --- a/mm/slab.c +++ b/mm/slab.c @@ -1901,7 +1901,7 @@ static bool set_on_slab_cache(struct kmem_cache *cachep, * @cachep: cache management descriptor * @flags: SLAB flags * - * Returns a ptr to the cache on success, NULL on failure. + * Returns zero on success, others on failure. * Cannot be called within a int, but can be interrupted. * The @ctor is run when new pages are allocated by the cache. * -- 2.39.2