Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262292AbUKVRz0 (ORCPT ); Mon, 22 Nov 2004 12:55:26 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262266AbUKVRyD (ORCPT ); Mon, 22 Nov 2004 12:54:03 -0500 Received: from e5.ny.us.ibm.com ([32.97.182.105]:52986 "EHLO e5.ny.us.ibm.com") by vger.kernel.org with ESMTP id S262233AbUKVRxG (ORCPT ); Mon, 22 Nov 2004 12:53:06 -0500 Date: Mon, 22 Nov 2004 09:19:19 -0800 From: Greg KH To: Miklos Szeredi Cc: akpm@osdl.org, torvalds@osdl.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/13] Filesystem in Userspace Message-ID: <20041122171919.GA4957@kroah.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1113 Lines: 32 On Sun, Nov 21, 2004 at 12:08:59AM +0100, Miklos Szeredi wrote: > This patch adds an empty /sys/fs, which filesystems can use. > > Signed-off-by: Miklos Szeredi > diff -ru linux-2.6.10-rc2.orig/fs/filesystems.c linux-2.6.10-rc2/fs/filesystems.c > --- linux-2.6.10-rc2.orig/fs/filesystems.c 2004-11-17 17:33:26.000000000 +0100 > +++ linux-2.6.10-rc2/fs/filesystems.c 2004-11-18 14:34:07.000000000 +0100 > @@ -29,6 +29,7 @@ > > static struct file_system_type *file_systems; > static rwlock_t file_systems_lock = RW_LOCK_UNLOCKED; > +static decl_subsys(fs, NULL, NULL); Just make this global and export it. That way you can then get rid of this code: > +int fs_subsys_register(struct subsystem *sub) > +{ > + kset_set_kset_s(sub, fs_subsys); > + return subsystem_register(sub); > +} > + > +EXPORT_SYMBOL(fs_subsys_register); thanks, greg k-h - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/