[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <DM6PR22MB1836D8C5348D28989105DADBC5959@DM6PR22MB1836.namprd22.prod.outlook.com>
Date: Mon, 10 Apr 2023 17:01:42 +0800
From: zhaoxinchao <ChrisXinchao@...look.com>
To: cl@...ux.com, penberg@...nel.org, rientjes@...gle.com,
iamjoonsoo.kim@....com, akpm@...ux-foundation.org, vbabka@...e.cz,
linux-mm@...ck.org, linux-kernel@...r.kernel.org
Cc: zhaoxinchao <chrisxinchao@...look.com>
Subject: [PATCH] mm: Fixed incorrect comment for _kmem_cache_create function
From: zhaoxinchao <chrisxinchao@...look.com>
Actually __kmem_cache_create() returns a status :
0 is success
others are failed.
Signed-off-by: zhaoxinchao <chrisxinchao@...look.com>
---
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
Powered by blists - more mailing lists