Skip to contentSkip to conversation

mm-fix-some-indenting-in-cmpxchg_double_slab.patch removed from -mm tree

merged [email protected] 1 participant 1 message May 27, 2014

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: [merged] mm-fix-some-indenting-in-cmpxchg_double_slab.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Tue, 27 May 2014 13:22:37 -0700

The patch titled
Subject: mm/slub.c: fix some indenting in cmpxchg_double_slab()
has been removed from the -mm tree. Its filename was
mm-fix-some-indenting-in-cmpxchg_double_slab.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Dan Carpenter <[email protected]>
Subject: mm/slub.c: fix some indenting in cmpxchg_double_slab()

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;".

---

 mm/slub.c |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
mm/slub.c renamed from mm/slub.c~mm-fix-some-indenting-in-cmpxchg_double_slab +6 -6
diff -puN mm/slub.c~mm-fix-some-indenting-in-cmpxchg_double_slab mm/slub.c
@@ -382,9 +382,9 @@ static inline bool __cmpxchg_double_slab
     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
 	{
@@ -418,9 +418,9 @@ static inline bool cmpxchg_double_slab(s
     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
 	{

_

Patches currently in -mm which might be from [email protected] are

mm-page_alloc-calculate-classzone_idx-once-from-the-zonelist-ref-fix.patch lib-stringc-use-the-name-c-string-in-comments.patch linux-next.patch