From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Serge E. Hallyn" Subject: Re: [PATCH 1/6] sysfs: Basic support for multiple super blocks Date: Wed, 31 Mar 2010 08:47:57 -0500 Message-ID: <20100331134757.GA6132@us.ibm.com> References: <1269973889-25260-1-git-send-email-ebiederm@xmission.com> <4BB2E098.7030202@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Tejun Heo , Greg Kroah-Hartman , Kay Sievers , linux-kernel@vger.kernel.org, Cornelia Huck , linux-fsdevel@vger.kernel.org, Eric Dumazet , Benjamin LaHaise , netdev@vger.kernel.org To: "Eric W. Biederman" Return-path: Received: from e35.co.us.ibm.com ([32.97.110.153]:57371 "EHLO e35.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933284Ab0CaNsO (ORCPT ); Wed, 31 Mar 2010 09:48:14 -0400 Content-Disposition: inline In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Quoting Eric W. Biederman (ebiederm@xmission.com): > Tejun Heo writes: > >> index 30f5a44..030a39d 100644 > >> --- a/fs/sysfs/sysfs.h > >> +++ b/fs/sysfs/sysfs.h > >> @@ -114,6 +114,9 @@ struct sysfs_addrm_cxt { > >> /* > >> * mount.c > >> */ > >> +struct sysfs_super_info { > >> +}; > >> +#define sysfs_info(SB) ((struct sysfs_super_info *)(SB->s_fs_info)) > > > > Another nit picking. It would be better to wrap SB in the macro > > definition. Also, wouldn't an inline function be better? > > Good spotting. That doesn't bite today but it will certainly bite > someday if it isn't fixed. > > I wonder how that has slipped through the review all of this time. (let me demonstrate how: ) WTH are you talking about? Unless you mean doing (SB) inside the definition? I actually was going to suggest dropping the #define as it obscures the code, but I figured it would get more complicated later. -serge