From: Greg KH <greg@kroah.com>
To: Miklos Szeredi <miklos@szeredi.hu>
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
Date: Mon, 22 Nov 2004 09:19:19 -0800 [thread overview]
Message-ID: <20041122171919.GA4957@kroah.com> (raw)
In-Reply-To: <E1CVeLj-0007Oe-00@dorka.pomaz.szeredi.hu>
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 <miklos@szeredi.hu>
> 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
prev parent reply other threads:[~2004-11-22 17:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-20 23:08 [PATCH 1/13] Filesystem in Userspace Miklos Szeredi
2004-11-22 17:19 ` Greg KH [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041122171919.GA4957@kroah.com \
--to=greg@kroah.com \
--cc=akpm@osdl.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=miklos@szeredi.hu \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).