search for: btrfs_kset

Displaying 2 results from an estimated 2 matches for "btrfs_kset".

Did you mean: btrfs_key
2008 Feb 13
2
[PATCH] btrfs: fixes for kobject changes in mainline
...-18f284b2de93.orig/sysfs.c btrfs-unstable-18f284b2de93/sysfs.c --- btrfs-unstable-18f284b2de93.orig/sysfs.c 2008-02-06 07:00:57.000000000 -0800 +++ btrfs-unstable-18f284b2de93/sysfs.c 2008-02-06 08:54:53.000000000 -0800 @@ -184,7 +184,8 @@ .release = btrfs_super_release, }; -static struct kset btrfs_kset; +/* /sys/fs/btrfs/ entry */ +static struct kset *btrfs_kset; int btrfs_sysfs_add_super(struct btrfs_fs_info *fs) { @@ -208,14 +209,9 @@ } name[len] = '\0'; - fs->super_kobj.kset = &btrfs_kset; - fs->super_kobj.ktype = &btrfs_super_ktype; - - error = kobject_set_name...
2007 Oct 17
0
[PATCH 3/3] sysfs compile fixup
...ror: unknown field 'name' specified in initializer diff -r f89e7971692f sysfs.c --- a/sysfs.c Mon Oct 15 16:22:39 2007 -0400 +++ b/sysfs.c Wed Oct 17 10:37:07 2007 +0200 @@ -184,9 +184,7 @@ static struct kobj_type btrfs_super_ktyp .release = btrfs_super_release, }; -static struct kset btrfs_kset = { - .kobj = {.name = "btrfs"}, -}; +static struct kset btrfs_kset; int btrfs_sysfs_add_super(struct btrfs_fs_info *fs) { @@ -249,6 +247,7 @@ int btrfs_init_sysfs() int btrfs_init_sysfs() { kobj_set_kset_s(&btrfs_kset, fs_subsys); + kobject_set_name(&btrfs_kset.kobj, &quo...