Re: [External] Re: [PATCH 2/3] mm/slub: Use node_nr_slabs() instead of slabs_node()

2020-06-14 Thread Muchun Song
On Mon, Jun 15, 2020 at 2:15 PM Joonsoo Kim wrote: > > 2020년 6월 14일 (일) 오후 9:39, Muchun Song 님이 작성: > > > > In the some code, we already get the kmem_cache_node, so we can > > use node_nr_slabs() directly instead of slabs_node(). Check the > > condition of n->nr_partial can also be removed because

Re: [PATCH 2/3] mm/slub: Use node_nr_slabs() instead of slabs_node()

2020-06-14 Thread Joonsoo Kim
2020년 6월 14일 (일) 오후 9:39, Muchun Song 님이 작성: > > In the some code, we already get the kmem_cache_node, so we can > use node_nr_slabs() directly instead of slabs_node(). Check the > condition of n->nr_partial can also be removed because we can get > the correct result via node_nr_slabs(). > > Signed

[PATCH 2/3] mm/slub: Use node_nr_slabs() instead of slabs_node()

2020-06-14 Thread Muchun Song
In the some code, we already get the kmem_cache_node, so we can use node_nr_slabs() directly instead of slabs_node(). Check the condition of n->nr_partial can also be removed because we can get the correct result via node_nr_slabs(). Signed-off-by: Muchun Song --- mm/slub.c | 8 1 file