* [patch] mm: fix some indenting in cmpxchg_double_slab()
@ 2014-05-14 16:16 Dan Carpenter
2014-05-14 20:10 ` David Rientjes
0 siblings, 1 reply; 2+ messages in thread
From: Dan Carpenter @ 2014-05-14 16:16 UTC (permalink / raw)
To: Christoph Lameter; +Cc: Pekka Enberg, Matt Mackall, linux-mm, kernel-janitors
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 <dan.carpenter@oracle.com>
diff --git a/mm/slub.c b/mm/slub.c
index fdf0fe4..d96faa2 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -382,9 +382,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
{
@@ -418,9 +418,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
{
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [patch] mm: fix some indenting in cmpxchg_double_slab()
2014-05-14 16:16 [patch] mm: fix some indenting in cmpxchg_double_slab() Dan Carpenter
@ 2014-05-14 20:10 ` David Rientjes
0 siblings, 0 replies; 2+ messages in thread
From: David Rientjes @ 2014-05-14 20:10 UTC (permalink / raw)
To: Dan Carpenter
Cc: Christoph Lameter, Pekka Enberg, Matt Mackall, linux-mm, kernel-janitors
On Wed, 14 May 2014, Dan Carpenter wrote:
> 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 <dan.carpenter@oracle.com>
Acked-by: David Rientjes <rientjes@google.com>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-05-14 20:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-14 16:16 [patch] mm: fix some indenting in cmpxchg_double_slab() Dan Carpenter
2014-05-14 20:10 ` David Rientjes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox