Skip to content

Commit

Permalink
mm: slab/slub: coding style: whitespaces and tabs mixture
Browse files Browse the repository at this point in the history
Some code in mm/slab.c and mm/slub.c use whitespaces in indent.
Clean them up.

Signed-off-by: LQYMGT <[email protected]>
Acked-by: Christoph Lameter <[email protected]>
Cc: Pekka Enberg <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Joonsoo Kim <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
LQYMGT authored and torvalds committed Dec 11, 2014
1 parent e2ab879 commit b455def
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions mm/slab.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
10 changes: 5 additions & 5 deletions mm/slub.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit b455def

Please sign in to comment.