[no subject]

From: root
Date: Tue May 24 2005 - 05:17:09 EST


by smtp.nexlab.net (Postfix) with ESMTP id 9E548FB76

for <chiakotay@xxxxxxxxx>; Tue, 24 May 2005 10:01:47 +0200 (CEST)

Received: (majordomo@xxxxxxxxxxxxxxx) by vger.kernel.org via listexpand

id S261380AbVEXHLm (ORCPT <rfc822;chiakotay@xxxxxxxxx>);

Tue, 24 May 2005 03:11:42 -0400

Received: (majordomo@xxxxxxxxxxxxxxx) by vger.kernel.org id S261383AbVEXHLm

(ORCPT <rfc822;linux-kernel-outgoing>);

Tue, 24 May 2005 03:11:42 -0400

Received: from wproxy.gmail.com ([64.233.184.198]:55599 "EHLO wproxy.gmail.com")

by vger.kernel.org with ESMTP id S261380AbVEXHLf convert rfc822-to-8bit

(ORCPT <rfc822;linux-kernel@xxxxxxxxxxxxxxx>);

Tue, 24 May 2005 03:11:35 -0400

Received: by wproxy.gmail.com with SMTP id 68so2499905wri

for <linux-kernel@xxxxxxxxxxxxxxx>; Tue, 24 May 2005 00:11:34 -0700 (PDT)

DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;

s=beta; d=gmail.com;

h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;

b=tvIhVOeAzDNbsvJvSQ5uiPWVf1N9fUHV/ILTH1RV6NCU8oFfa/Deuwxu8gnPnKO2oOPcW9uTpMLIC9RWUkUYORUvUUF5ovlT66teN2p4kc1mPLda7J/oL/8dMHdOkC54WTfaWuiTjdCwq+AD65PTFOYTBk4bAGyeGa/JpWda7Uo=

Received: by 10.54.37.78 with SMTP id k78mr3954580wrk;

Tue, 24 May 2005 00:11:34 -0700 (PDT)

Received: by 10.54.66.13 with HTTP; Tue, 24 May 2005 00:11:34 -0700 (PDT)

Message-ID: <84144f0205052400113c6f40fc@xxxxxxxxxxxxxx>

Date: Tue, 24 May 2005 10:11:34 +0300

From: Pekka Enberg <penberg@xxxxxxxxx>
Reply-To: Pekka Enberg <penberg@xxxxxxxxx>
To: "ericvh@xxxxxxxxx" <ericvh@xxxxxxxxx>
Subject: Re: [RFC][patch 4/7] v9fs: VFS superblock operations (2.0-rc6)

Cc: linux-kernel@xxxxxxxxxxxxxxx,
v9fs-developer@xxxxxxxxxxxxxxxxxxxxx,
viro@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx,
linux-fsdevel@xxxxxxxxxxxxxxx, penberg@xxxxxxxxxxxxxx
In-Reply-To: <200505232225.j4NMPte1029529@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>

Mime-Version: 1.0

Content-Type: text/plain; charset=US-ASCII

Content-Transfer-Encoding: 7BIT

Content-Disposition: inline

References: <200505232225.j4NMPte1029529@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>

Sender: linux-kernel-owner@xxxxxxxxxxxxxxx
Precedence: bulk

X-Mailing-List: linux-kernel@xxxxxxxxxxxxxxx



Hi,

On 5/24/05, ericvh@xxxxxxxxx <ericvh@xxxxxxxxx> wrote:
> Index: fs/9p/v9fs.c
> ===================================================================
> --- /dev/null (tree:0bf32353105286a5624aeea862d35a4bbae09851)
> +++ 178666ee376655ef8ec19a2ffc0490241b428110/fs/9p/v9fs.c (mode:100644)
> @@ -0,0 +1,573 @@
> +/*
> + * Fcall Slab Accounting
> + */
> +
> +struct v9fs_slab {
> + struct list_head list;
> +
> + int size;
> + kmem_cache_t *slab;
> +};
> +
> +static LIST_HEAD(v9fs_slab_list);

[snip]

> +
> +/**
> + * find_slab - look up a slab by size
> + * @size: size of slab data
> + *
> + */
> +
> +static inline kmem_cache_t *find_slab(int size)

Hmm? Why do you need this? If you're missing functionality from the
slab allocator, please put that in mm/slab.c, not your filesystem!

> +void v9fs_session_close(struct v9fs_session_info *v9ses)
> +{

[snip]

> + if (v9ses->name) {
> + kfree(v9ses->name);
> + }

kfree() handles NULL pointers just fine, so please drop the redundant
check (here and in various other places too).

Pekka
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/