[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Fri, 6 Jun 2014 09:52:17 -0500 (CDT)
From: Christoph Lameter <cl@...two.org>
To: Vladimir Davydov <vdavydov@...allels.com>
cc: akpm@...ux-foundation.org, iamjoonsoo.kim@....com,
rientjes@...gle.com, penberg@...nel.org, hannes@...xchg.org,
mhocko@...e.cz, linux-kernel@...r.kernel.org, linux-mm@...ck.org
Subject: Re: [PATCH -mm v2 8/8] slab: make dead memcg caches discard free
slabs immediately
On Fri, 6 Jun 2014, Vladimir Davydov wrote:
> @@ -740,7 +740,8 @@ static void start_cpu_timer(int cpu)
> }
> }
>
> -static struct array_cache *alloc_arraycache(int node, int entries,
> +static struct array_cache *alloc_arraycache(struct kmem_cache *cachep,
> + int node, int entries,
> int batchcount, gfp_t gfp)
> {
> int memsize = sizeof(void *) * entries + sizeof(struct array_cache);
If you pass struct kmem_cache * into alloc_arraycache then we do not need
to pass entries or batchcount because they are available in struct
kmem_cache.
Otherwise this patch looks a bit too large to me. Simplify a bit?
--
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