mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-07 13:43:51 +00:00
SLUB: Fix some coding style issues
Signed-off-by: WANG Cong <amwang@redhat.com> Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
This commit is contained in:
parent
bbff2e433e
commit
5086c389cb
@ -1109,8 +1109,7 @@ static struct page *allocate_slab(struct kmem_cache *s, gfp_t flags, int node)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (kmemcheck_enabled
|
if (kmemcheck_enabled
|
||||||
&& !(s->flags & (SLAB_NOTRACK | DEBUG_DEFAULT_FLAGS)))
|
&& !(s->flags & (SLAB_NOTRACK | DEBUG_DEFAULT_FLAGS))) {
|
||||||
{
|
|
||||||
int pages = 1 << oo_order(oo);
|
int pages = 1 << oo_order(oo);
|
||||||
|
|
||||||
kmemcheck_alloc_shadow(page, oo_order(oo), flags, node);
|
kmemcheck_alloc_shadow(page, oo_order(oo), flags, node);
|
||||||
@ -2001,7 +2000,7 @@ static inline int calculate_order(int size)
|
|||||||
return order;
|
return order;
|
||||||
fraction /= 2;
|
fraction /= 2;
|
||||||
}
|
}
|
||||||
min_objects --;
|
min_objects--;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user