[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.20.1601141108060.4629@east.gentwo.org>
Date: Thu, 14 Jan 2016 11:13:17 -0600 (CST)
From: Christoph Lameter <cl@...ux.com>
To: Joonsoo Kim <js1304@...il.com>
cc: Andrew Morton <akpm@...ux-foundation.org>,
Pekka Enberg <penberg@...nel.org>,
David Rientjes <rientjes@...gle.com>,
Joonsoo Kim <iamjoonsoo.kim@....com>,
Jesper Dangaard Brouer <brouer@...hat.com>,
linux-mm@...ck.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 09/16] mm/slab: put the freelist at the end of slab
page
On Thu, 14 Jan 2016, Joonsoo Kim wrote:
> /*
> * Calculate the number of objects and left-over bytes for a given buffer size.
> */
> static void cache_estimate(unsigned long gfporder, size_t buffer_size,
> - size_t align, int flags, size_t *left_over,
> - unsigned int *num)
> + unsigned long flags, size_t *left_over, unsigned int *num)
> {
Return the number of objects from the function? Avoid returning values by
reference. left_over is already bad enough.
Otherwise
Acked-by: Christoph Lameter <cl@...ux.com>
Powered by blists - more mailing lists