mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
mm: slab/slub: coding style: whitespaces and tabs mixture
Some code in mm/slab.c and mm/slub.c use whitespaces in indent. Clean them up. Signed-off-by: LQYMGT <lqymgt@gmail.com> Acked-by: Christoph Lameter <cl@linux.com> Cc: Pekka Enberg <penberg@kernel.org> Cc: David Rientjes <rientjes@google.com> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
e2ab879e96
commit
b455def28d
10
mm/slab.c
10
mm/slab.c
@ -3580,11 +3580,11 @@ static int alloc_kmem_cache_node(struct kmem_cache *cachep, gfp_t gfp)
|
||||
|
||||
for_each_online_node(node) {
|
||||
|
||||
if (use_alien_caches) {
|
||||
new_alien = alloc_alien_cache(node, cachep->limit, gfp);
|
||||
if (!new_alien)
|
||||
goto fail;
|
||||
}
|
||||
if (use_alien_caches) {
|
||||
new_alien = alloc_alien_cache(node, cachep->limit, gfp);
|
||||
if (!new_alien)
|
||||
goto fail;
|
||||
}
|
||||
|
||||
new_shared = NULL;
|
||||
if (cachep->shared) {
|
||||
|
10
mm/slub.c
10
mm/slub.c
@ -2554,7 +2554,7 @@ static void __slab_free(struct kmem_cache *s, struct page *page,
|
||||
|
||||
} else { /* Needs to be taken off a list */
|
||||
|
||||
n = get_node(s, page_to_nid(page));
|
||||
n = get_node(s, page_to_nid(page));
|
||||
/*
|
||||
* Speculatively acquire the list_lock.
|
||||
* If the cmpxchg does not succeed then we may
|
||||
@ -2587,10 +2587,10 @@ static void __slab_free(struct kmem_cache *s, struct page *page,
|
||||
* The list lock was not taken therefore no list
|
||||
* activity can be necessary.
|
||||
*/
|
||||
if (was_frozen)
|
||||
stat(s, FREE_FROZEN);
|
||||
return;
|
||||
}
|
||||
if (was_frozen)
|
||||
stat(s, FREE_FROZEN);
|
||||
return;
|
||||
}
|
||||
|
||||
if (unlikely(!new.inuse && n->nr_partial >= s->min_partial))
|
||||
goto slab_empty;
|
||||
|
Loading…
Reference in New Issue
Block a user