linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm: Fixed incorrect comment for _kmem_cache_create function
@ 2023-04-10  9:01 zhaoxinchao
  2023-04-10 14:05 ` Bagas Sanjaya
  0 siblings, 1 reply; 8+ messages in thread
From: zhaoxinchao @ 2023-04-10  9:01 UTC (permalink / raw)
  To: cl, penberg, rientjes, iamjoonsoo.kim, akpm, vbabka, linux-mm,
	linux-kernel
  Cc: zhaoxinchao

From: zhaoxinchao <chrisxinchao@outlook.com>

Actually __kmem_cache_create() returns a status :
0 is success
others are failed.

Signed-off-by: zhaoxinchao <chrisxinchao@outlook.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



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-04-18  7:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-10  9:01 [PATCH] mm: Fixed incorrect comment for _kmem_cache_create function zhaoxinchao
2023-04-10 14:05 ` Bagas Sanjaya
2023-04-11  9:13   ` [PATCH v2] " zhaoxinchao
2023-04-12  3:40     ` Bagas Sanjaya
2023-04-12  6:17       ` 答复: " zhao xinchao
2023-04-17 15:47     ` Vlastimil Babka
2023-04-18  2:05       ` [PATCH v3] " zhaoxinchao
2023-04-18  7:10         ` Vlastimil Babka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox