Skip to content

Commit

Permalink
missing atomic_read_long() in slub.c
Browse files Browse the repository at this point in the history
nr_slabs is atomic_long_t, not atomic_t

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Al Viro authored and Linus Torvalds committed Oct 29, 2007
1 parent 2d8a972 commit 27bb628
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/slub.c
Original file line number Diff line number Diff line change
Expand Up @@ -2734,7 +2734,7 @@ static void slab_mem_offline_callback(void *arg)
* and offline_pages() function shoudn't call this
* callback. So, we must fail.
*/
BUG_ON(atomic_read(&n->nr_slabs));
BUG_ON(atomic_long_read(&n->nr_slabs));

s->node[offline_node] = NULL;
kmem_cache_free(kmalloc_caches, n);
Expand Down

0 comments on commit 27bb628

Please sign in to comment.