diff options
Diffstat (limited to 'mm/slub.c')
-rw-r--r-- | mm/slub.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2734,7 +2734,7 @@ static void slab_mem_offline_callback(void *arg) | |||
2734 | * and offline_pages() function shoudn't call this | 2734 | * and offline_pages() function shoudn't call this |
2735 | * callback. So, we must fail. | 2735 | * callback. So, we must fail. |
2736 | */ | 2736 | */ |
2737 | BUG_ON(atomic_read(&n->nr_slabs)); | 2737 | BUG_ON(atomic_long_read(&n->nr_slabs)); |
2738 | 2738 | ||
2739 | s->node[offline_node] = NULL; | 2739 | s->node[offline_node] = NULL; |
2740 | kmem_cache_free(kmalloc_caches, n); | 2740 | kmem_cache_free(kmalloc_caches, n); |