Displaying 3 results from an estimated 3 matches for "btrfs_sysfs_add_sup".
Did you mean:
btrfs_sysfs_add_super
2007 Oct 17
0
[PATCH 3/3] sysfs compile fixup
...sfs.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, "btrfs");
return kset_register(&btrfs_kset);
}
--
Jens Axboe
2008 Feb 13
2
[PATCH] btrfs: fixes for kobject changes in mainline
...e-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(&fs->super_kobj, "%s", name);
- if (error)
- goto fail;
-
- error = ko...
2008 Jun 24
1
[RFC][PATCH] btrfs orphan code
...R, 0);
if (ret)
goto fail;
diff -r 99b12e2db0f8 super.c
--- a/super.c Wed Jun 18 20:50:41 2008 -0400
+++ b/super.c Tue Jun 24 21:04:39 2008 -0400
@@ -339,6 +339,7 @@ static int btrfs_fill_super(struct super
goto fail_close;
}
+
/* this does the super kobj at the same time */
err = btrfs_sysfs_add_super(tree_root->fs_info);
if (err)
@@ -467,6 +468,22 @@ static int btrfs_get_sb(struct file_syst
deactivate_super(s);
error = -ENXIO;
goto error;
+ }
+
+ /* we don''t want to do orphan stuff on a rdonly fs */
+ if (!(s->s_flags & MS_RDONLY)) {
+ struct btrfs_root *tree_ro...