lkml.org 
[lkml]   [2020]   [Jun]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/3] mm/slub: Fix slabs_node return value
Date
The slabs_node() always return zero when CONFIG_SLUB_DEBUG is disabled.
But some codes determine whether slab is empty by checking the return
value of slabs_node(). As you know, the result is not correct. we move
the nr_slabs of kmem_cache_node out of the CONFIG_SLUB_DEBUG. So we can
get the corrent value returned by the slabs_node().

Muchun Song (3):
mm/slub: Fix slabs_node return value when CONFIG_SLUB_DEBUG disabled
mm/slub: Use node_nr_slabs() instead of slabs_node()
mm/slub: Fix release all resources used by a slab cache

mm/slab.h | 2 +-
mm/slub.c | 93 +++++++++++++++++++++++++++++++++------------------------------
2 files changed, 50 insertions(+), 45 deletions(-)

--
2.11.0

\
 
 \ /
  Last update: 2020-06-14 14:40    [W:0.115 / U:1.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site