aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mm/slub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/slub.c b/mm/slub.c
index 8f73593d4f21..21b3f004f614 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -1005,7 +1005,7 @@ static inline void inc_slabs_node(struct kmem_cache *s, int node, int objects)
1005 * dilemma by deferring the increment of the count during 1005 * dilemma by deferring the increment of the count during
1006 * bootstrap (see early_kmem_cache_node_alloc). 1006 * bootstrap (see early_kmem_cache_node_alloc).
1007 */ 1007 */
1008 if (n) { 1008 if (likely(n)) {
1009 atomic_long_inc(&n->nr_slabs); 1009 atomic_long_inc(&n->nr_slabs);
1010 atomic_long_add(objects, &n->total_objects); 1010 atomic_long_add(objects, &n->total_objects);
1011 } 1011 }