Re: [PATCH 1/13] Filesystem in Userspace

From: Greg KH
Date: Mon Nov 22 2004 - 12:58:39 EST


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@xxxxxxxxxx>
> 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/