Lines Matching refs:fsid_kobj

522 	memset(&fs_devs->fsid_kobj, 0, sizeof(struct kobject));  in btrfs_release_fsid_kobj()
535 return container_of(kobj, struct btrfs_fs_devices, fsid_kobj); in to_fs_devs()
584 ret = sysfs_merge_group(&fs_info->fs_devices->fsid_kobj, in addrm_unknown_feature_attrs()
589 sysfs_unmerge_group(&fs_info->fs_devices->fsid_kobj, in addrm_unknown_feature_attrs()
605 if (fs_devs->fsid_kobj.state_initialized) { in __btrfs_sysfs_remove_fsid()
606 kobject_del(&fs_devs->fsid_kobj); in __btrfs_sysfs_remove_fsid()
607 kobject_put(&fs_devs->fsid_kobj); in __btrfs_sysfs_remove_fsid()
637 sysfs_remove_group(&fs_info->fs_devices->fsid_kobj, &btrfs_feature_attr_group); in btrfs_sysfs_remove_mounted()
638 sysfs_remove_files(&fs_info->fs_devices->fsid_kobj, btrfs_attrs); in btrfs_sysfs_remove_mounted()
757 &fs_devs->fsid_kobj); in btrfs_sysfs_add_device()
815 fs_devs->fsid_kobj.kset = btrfs_kset; in btrfs_sysfs_add_fsid()
816 error = kobject_init_and_add(&fs_devs->fsid_kobj, in btrfs_sysfs_add_fsid()
819 kobject_put(&fs_devs->fsid_kobj); in btrfs_sysfs_add_fsid()
830 struct kobject *fsid_kobj = &fs_devs->fsid_kobj; in btrfs_sysfs_add_mounted() local
838 error = sysfs_create_files(fsid_kobj, btrfs_attrs); in btrfs_sysfs_add_mounted()
844 error = sysfs_create_group(fsid_kobj, in btrfs_sysfs_add_mounted()
854 fsid_kobj); in btrfs_sysfs_add_mounted()
879 struct kobject *fsid_kobj; in btrfs_sysfs_feature_update() local
890 fsid_kobj = &fs_devs->fsid_kobj; in btrfs_sysfs_feature_update()
892 if (!fsid_kobj->state_initialized) in btrfs_sysfs_feature_update()
899 sysfs_remove_group(fsid_kobj, &btrfs_feature_attr_group); in btrfs_sysfs_feature_update()
900 ret = sysfs_create_group(fsid_kobj, &btrfs_feature_attr_group); in btrfs_sysfs_feature_update()