Lines Matching refs:fsid_kobj
621 memset(&fs_devs->fsid_kobj, 0, sizeof(struct kobject)); in btrfs_release_fsid_kobj()
634 return container_of(kobj, struct btrfs_fs_devices, fsid_kobj); in to_fs_devs()
683 ret = sysfs_merge_group(&fs_info->fs_devices->fsid_kobj, in addrm_unknown_feature_attrs()
688 sysfs_unmerge_group(&fs_info->fs_devices->fsid_kobj, in addrm_unknown_feature_attrs()
704 if (fs_devs->fsid_kobj.state_initialized) { in __btrfs_sysfs_remove_fsid()
705 kobject_del(&fs_devs->fsid_kobj); in __btrfs_sysfs_remove_fsid()
706 kobject_put(&fs_devs->fsid_kobj); in __btrfs_sysfs_remove_fsid()
736 sysfs_remove_group(&fs_info->fs_devices->fsid_kobj, &btrfs_feature_attr_group); in btrfs_sysfs_remove_mounted()
737 sysfs_remove_files(&fs_info->fs_devices->fsid_kobj, btrfs_attrs); in btrfs_sysfs_remove_mounted()
965 &fs_devs->fsid_kobj); in btrfs_sysfs_add_device()
1022 if (kobject_rename(&fs_devices->fsid_kobj, fsid_buf)) in btrfs_sysfs_update_sprout_fsid()
1040 fs_devs->fsid_kobj.kset = btrfs_kset; in btrfs_sysfs_add_fsid()
1041 error = kobject_init_and_add(&fs_devs->fsid_kobj, in btrfs_sysfs_add_fsid()
1044 kobject_put(&fs_devs->fsid_kobj); in btrfs_sysfs_add_fsid()
1055 struct kobject *fsid_kobj = &fs_devs->fsid_kobj; in btrfs_sysfs_add_mounted() local
1063 error = sysfs_create_files(fsid_kobj, btrfs_attrs); in btrfs_sysfs_add_mounted()
1069 error = sysfs_create_group(fsid_kobj, in btrfs_sysfs_add_mounted()
1075 error = sysfs_create_group(fsid_kobj, in btrfs_sysfs_add_mounted()
1086 fsid_kobj); in btrfs_sysfs_add_mounted()
1111 struct kobject *fsid_kobj; in btrfs_sysfs_feature_update() local
1122 fsid_kobj = &fs_devs->fsid_kobj; in btrfs_sysfs_feature_update()
1124 if (!fsid_kobj->state_initialized) in btrfs_sysfs_feature_update()
1131 sysfs_remove_group(fsid_kobj, &btrfs_feature_attr_group); in btrfs_sysfs_feature_update()
1132 ret = sysfs_create_group(fsid_kobj, &btrfs_feature_attr_group); in btrfs_sysfs_feature_update()