]> Git Repo - linux.git/commitdiff
mm, slub: fix some indenting in cmpxchg_double_slab()
authorDan Carpenter <[email protected]>
Wed, 6 Aug 2014 23:04:48 +0000 (16:04 -0700)
committerLinus Torvalds <[email protected]>
Thu, 7 Aug 2014 01:01:15 +0000 (18:01 -0700)
The return statement goes with the cmpxchg_double() condition so it needs
to be indented another tab.

Also these days the fashion is to line function parameters up, and it
looks nicer that way because then the "freelist_new" is not at the same
indent level as the "return 1;".

Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Pekka Enberg <[email protected]>
Signed-off-by: David Rientjes <[email protected]>
Cc: Joonsoo Kim <[email protected]>
Cc: Christoph Lameter <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/slub.c

index 1f1f838326a0ee320eb612928b30f558dd93f7de..d9aadbfe7c29c313672cf1fedc2cec4407376d7b 100644 (file)
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -381,9 +381,9 @@ static inline bool __cmpxchg_double_slab(struct kmem_cache *s, struct page *page
     defined(CONFIG_HAVE_ALIGNED_STRUCT_PAGE)
        if (s->flags & __CMPXCHG_DOUBLE) {
                if (cmpxchg_double(&page->freelist, &page->counters,
-                       freelist_old, counters_old,
-                       freelist_new, counters_new))
-               return 1;
+                                  freelist_old, counters_old,
+                                  freelist_new, counters_new))
+                       return 1;
        } else
 #endif
        {
@@ -417,9 +417,9 @@ static inline bool cmpxchg_double_slab(struct kmem_cache *s, struct page *page,
     defined(CONFIG_HAVE_ALIGNED_STRUCT_PAGE)
        if (s->flags & __CMPXCHG_DOUBLE) {
                if (cmpxchg_double(&page->freelist, &page->counters,
-                       freelist_old, counters_old,
-                       freelist_new, counters_new))
-               return 1;
+                                  freelist_old, counters_old,
+                                  freelist_new, counters_new))
+                       return 1;
        } else
 #endif
        {
This page took 0.060411 seconds and 4 git commands to generate.