xfs-masters
[Top] [All Lists]

[xfs-masters] Re: [PATCH] xfs: kill kmem_zone init

To: Pekka J Enberg <penberg@xxxxxxxxxxxxxx>
Subject: [xfs-masters] Re: [PATCH] xfs: kill kmem_zone init
From: Nathan Scott <nathans@xxxxxxx>
Date: Tue, 21 Mar 2006 08:20:37 +1100
Cc: xfs-masters@xxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx
In-reply-to: <Pine.LNX.4.58.0603201501540.18684@sbz-30.cs.Helsinki.FI>; from penberg@cs.Helsinki.FI on Mon, Mar 20, 2006 at 03:04:14PM +0200
References: <Pine.LNX.4.58.0603201501540.18684@sbz-30.cs.Helsinki.FI>
Reply-to: xfs-masters@xxxxxxxxxxx
Sender: xfs-masters-bounce@xxxxxxxxxxx
User-agent: Mutt/1.2.5i
On Mon, Mar 20, 2006 at 03:04:14PM +0200, Pekka J Enberg wrote:
> Hi!

Hi Pekka,

> This patch changes kmem_zone_init() callers to use kmem_cache_alloc() so
> we can kill the wrapper.

Sorry, but thats just silly.  Did you even look at the code
around what you're changing (it has to do more than just wrap
up slab calls)?  So, NACK on this patch - it leaves the code
very confused (half zoney, half slaby), and is just unhelpful
code churn at the end of the day.

For your zalloc patch, you will need to duplicate the logic
in kmem_zone_alloc into kmem_zone_zalloc in order to use that
new zalloc interface you're introducing - which should be fine.

cheers.

-- 
Nathan


<Prev in Thread] Current Thread [Next in Thread>