Message ID | DM6PR22MB1836D8C5348D28989105DADBC5959@DM6PR22MB1836.namprd22.prod.outlook.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 A5C0AC77B61 for <linux-mm@archiver.kernel.org>; Mon, 10 Apr 2023 09:02:11 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0416B280009; Mon, 10 Apr 2023 05:02:11 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id F33AF280002; Mon, 10 Apr 2023 05:02:10 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DD591280009; Mon, 10 Apr 2023 05:02:10 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id CE486280002 for <linux-mm@kvack.org>; Mon, 10 Apr 2023 05:02:10 -0400 (EDT) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id A1F83A088E for <linux-mm@kvack.org>; Mon, 10 Apr 2023 09:02:10 +0000 (UTC) X-FDA: 80664889620.24.1A66ACD Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11olkn2012.outbound.protection.outlook.com [40.92.19.12]) by imf23.hostedemail.com (Postfix) with ESMTP id EF54014001B for <linux-mm@kvack.org>; Mon, 10 Apr 2023 09:02:07 +0000 (UTC) Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=outlook.com header.s=selector1 header.b=gmQmM10M; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf23.hostedemail.com: domain of ChrisXinchao@outlook.com designates 40.92.19.12 as permitted sender) smtp.mailfrom=ChrisXinchao@outlook.com; dmarc=pass (policy=none) header.from=outlook.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1681117328; 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=TRbUrKpTEjIuMH1C+Oeim/P/WdMGuZBs4i3UveQOTV0=; b=SI6R+JMYk+T7+pLMCMedRxW6Sn8xQNYHg+HLBBNf7DVn9tTNDr0E6xom0v7c97s8yvnFBp jzAPYlh75WDh0micV1+LltLDytKq4CFlUdKMvLSg+jOMGfdqcqYTKvUGt0F+pFRo5OOmO7 vNaVhA1reHTh1qsMA8KJtbNBNBfgFdM= ARC-Authentication-Results: i=2; imf23.hostedemail.com; dkim=pass header.d=outlook.com header.s=selector1 header.b=gmQmM10M; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf23.hostedemail.com: domain of ChrisXinchao@outlook.com designates 40.92.19.12 as permitted sender) smtp.mailfrom=ChrisXinchao@outlook.com; dmarc=pass (policy=none) header.from=outlook.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1681117328; a=rsa-sha256; cv=pass; b=gXMdzqw7ky6XswWoVsqZBZMQucIxtFVhNVw8gri0n03VtoGruCHuj7BwaWQS/ht/nqp6os F3/Ta4WyCvfpsL2W0g9K6ILjBj+NCUjl2zEidNUyLNlrwxwSZ3I5PeQ8JEqHBZyDEE+sll z1gvyksqDy03owssVwzZw8n+eRQJEF0= 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 <ChrisXinchao@outlook.com> 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 <chrisxinchao@outlook.com> Subject: [PATCH] mm: Fixed incorrect comment for _kmem_cache_create function Date: Mon, 10 Apr 2023 17:01:42 +0800 Message-ID: <DM6PR22MB1836D8C5348D28989105DADBC5959@DM6PR22MB1836.namprd22.prod.outlook.com> 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-Antispam-Message-Info: 6xqO2V4lydQJ/7qk0EheBKpZeCd1F3oRfPYha07wbygfgftUHtiwD9kKYRJ7daIxZt/3v9WXeXpD9V8JCOUYm7Gj92PDs1WV1GfwHBq++TZ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eEH9YM+ydJ/VZX/yFndjkLMFofSHXJL2ilK0IwyVSkVNTtd0Z/3H0se5/uPomYitup06ZFiK4LZNt1hNU9oUsMMn7DR+BJ9/WdJ4yg8zG8pVCJ7GL24wG0TKdm7JdiBOoPBqxr5bUCrlnF+QDo3b+QFsS7Jel1xAFzvkG73fG8TRL9QxZzQwO/9cZrvt8Zhir5lOzEhB7Mz63mcYmKVa+dgdpPfNUzBQDn0MZpuyp7RAOQi1O1yo5N7oQEAeMBYW50qEPHBVYFzGtCcFtsqJhG0VQqm3MPbfbEBDfm8VlWoTDYj/uM8WIB0tX/+rkppWZ2rEA8IdHjBoh2yQ31ZuytNZemUNXjQG1XK36XC853GvIH7uP7S21qb0VtKvtbPOiWYWjNac8np4Qg84iaq784VJ2iwL8Yt0NaCJRuYtF38OEToPEeW+tDvWrGljOPUIfOVr93OqZghR42FKtcVvkXg+cSjwb+PiX9XC6IrJ4Vi+Y2fZD2Mq5VaVXNAmoj2ZmiQQ30A8KBNxuJOw06YZXYRn+0uAPpWckni1EiivAzKlw9OqHAaRfH91DlQz3Tw1lP1E8WGRBvBB1UzQZwFt8Sg+hEp0B/0mYOLulKnRnDGAMivBuzL2lgGnBYm92xtgzSxJkrtnR/4VVbXdk5CXTxc6P/Z+2Erdu9DyDErcUs5f0LGJORvV2vLjiCKAji3WMiWWdNPm/K1OdfeThZkQhMvQyF4NF42GTPgmuu+4Bo1IKUB1iKZMQVe3X8vRx/u4yWySs= 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-Rspam-User: X-Rspamd-Server: rspam03 X-Stat-Signature: jsjrfp9ene8si4hafkci78f93hfi5gcg X-Rspamd-Queue-Id: EF54014001B X-HE-Tag: 1681117327-888282 X-HE-Meta: U2FsdGVkX18tAac0QkOUyUw7GCvOl3usCWiBt8c6Y6f4BW5AazKSPkaQHdnZ4U/fB9nPRrr2u0EQcmd/2pNX+xDqg5TKh/38G/5UayanaBOM35EgeVBkXz0WcZo/vXnBfLa/jKG1JXynN6yqax5VdERyG3/G9NkXktBrzQt0y1LaHZgOF0cmG/2dOM4tR7nBJPHfw3QrF+Mlp+IvBudG1c7OJCs+aZxHenSXpSlljfwaZL2P8aELB9TgQFPOtPVX+7rduoiHIu2siui0lZ27iHQUsaJxMrK5n6ebBUm/DW+lhA2HQ6fh6mzVX0U2yJo0IT8LBmSePuOefZw7xM/l0T6mEb1ATWyUX52NsxzLRUlHQBXiMcKqjum3CJMAMlq5c8eBGLRHNTI/4FE3TBlJ9/Isc3Qy0EO4glymcfGoUwKikcNfGVtxPzn3eAJJU/I1Rsxw2c3LqiyOwE+2ZT44vidkFPs734t3yEP+u+u3E0TC7Ymy2jkrmIVyolc6grTIkYsWJfseY9+caFMhFTni8HUoWLHgLcfmBc2qTuplTQUJSvhyf4LiDti0UAMcPJkWV4DR2ooZzaxs6Y/xmUAwwQNd0FSyKIdEAdxeeSpMxwaFMZI77HCFykaPdXZMps8oVWb8SQiHxKYrjOywKqLGngV+m7u4NdZurzWJYL0NmMEDRGQC8d14DgbMtaxGFHcPsh+cyA8yBMrR/lXS6djOnDrrUNDUe5Bg3VQe2HD6mO3DtfQO4hD6GS8SK9/yQpBJV3HnX8ow2fJqPt3uUaefunC5LxwxoMyxSpbCPiMo2EV9JpYp4/TWpf6yRAsJVqhN8Z+2MWGwFjTUrANVmyPqQ5ww2tZP+RbI09dg//QVP5Iia2YdA6u/IWxoy0zDjbHQMMW1dTuvHWIr7ABISp57RqN0daHRtvVNIis2z+rzDTWsZ1R7kYQzRbV9YQvrWxuO7evD6OOANAR8GUcPpF+ 3cn4/qd+ Gy2QVCcy/WXpk+ptb4SAyw082vebQ9CAQW5Wg7QsQNCgrP3rAP8vWbyn0bOGOlqIcYBiqPUwOp1+Y2yY4CejWNgoJ6XoBySAZBiQ78mLI8Ua8RQtdZ/2w7o3UdMuxJpCz6pB4wIdFLGm/uFDhWCMe+ddi9Lg0NCUoLDPrpv5W0I92COHys1OBr0cWKFH6Ci0qp7yIkWGDiagVZiDclxXbqRPwQ0rR3dBrMftzC7f27SWq0k7lIv+zxmmM3CCajYGCU9o8gBs+hiRTqjxEhOsh8I3lUU/ewv+r6iPFai6eUQo6iVTCSRRWP5NImVMerDChubiv4vocfGJEaNmY0FxHTO1lxvtqwnbKhTnuCOQDjH/dqXuxDR2Z7VtkeyLKy4yk/XcqybovijbOTWmADhZzo7O2GJ4i9NRbEZRm5gI2u1KH0bMRsQRlDxC0IyVttWRvhV//B8LJNAbPgOIPyMKfMX+udSAdXv6vg3wxvOFccxuk6ajwDbdWFvjQiLRFwiJ2ek6RwasALo56ZQI= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000041, 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 |
mm: Fixed incorrect comment for _kmem_cache_create function
|
expand
|
On Mon, Apr 10, 2023 at 05:01:42PM +0800, zhaoxinchao wrote: > - * Returns a ptr to the cache on success, NULL on failure. > + * Returns zero on success, others on failure. Can you explain what these other return values are? I have skimmed on __kmem_cache_create() kerneldoc and the function returns error in that case.
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. *