From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bombadil.infradead.org ([18.85.46.34]:49107 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753512Ab0GRJJv (ORCPT ); Sun, 18 Jul 2010 05:09:51 -0400 Date: Sun, 18 Jul 2010 05:09:48 -0400 From: Christoph Hellwig To: Jim Rees Cc: bhalevy@panasas.com, linux-nfs@vger.kernel.org Subject: Re: [PATCH 1/2] pnfs-block: Add support for simple rpc pipefs Message-ID: <20100718090948.GB24960@infradead.org> References: Content-Type: text/plain; charset=us-ascii In-Reply-To: Sender: linux-nfs-owner@vger.kernel.org List-ID: MIME-Version: 1.0 > --- /dev/null > +++ b/include/linux/sunrpc/simple_rpc_pipefs.h > @@ -0,0 +1,112 @@ > +/* > + * linux/fs/gfs2/simple_rpc_pipefs.h There's a reason why these kind of filename comments are useless, and you have just proven it. > +#include > +#include > +#include > +#include > +#include > +#include Do you actually need all these in a header? I suspect many could go away in favour of forward declarations. > +typedef struct pipefs_hdr { > + u32 msgid; > + u8 type; > + u8 flags; > + u16 totallen; /* length of entire message, including hdr itself */ > + u32 status; > +} pipefs_hdr_t; > +typedef struct pipefs_list { > + struct list_head list; > + spinlock_t list_lock; > +} pipefs_list_t; Please do not add typedefs for your structures.