[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20120709154100.6a7377e6.akpm@linux-foundation.org>
Date: Mon, 9 Jul 2012 15:41:00 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: JoonSoo Kim <js1304@...il.com>
Cc: David Rientjes <rientjes@...gle.com>, Mel Gorman <mgorman@...e.de>,
Pekka Enberg <penberg@...nel.org>,
Christoph Lameter <cl@...ux-foundation.org>,
linux-kernel@...r.kernel.org, linux-mm@...ck.org
Subject: Re: [PATCH] mm: don't invoke __alloc_pages_direct_compact when
order 0
On Mon, 9 Jul 2012 23:13:50 +0900
JoonSoo Kim <js1304@...il.com> wrote:
> >> In my kernel image, __alloc_pages_direct_compact() is not inlined by gcc.
My gcc-4.4.4 doesn't inline it either.
> I think __alloc_pages_direct_compact() can't be inlined by gcc,
> because it is so big and is invoked two times in __alloc_pages_nodemask().
This. Large function, two callsites.
Making __alloc_pages_direct_compact() __always_inline adds only 26
bytes to my page_alloc.o's .text. Such is the suckiness of passing
eleven arguments!
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists