Lines Matching refs:fs_devices
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()
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()
639 btrfs_sysfs_rm_device_link(fs_info->fs_devices, NULL); in btrfs_sysfs_remove_mounted()
719 int btrfs_sysfs_rm_device_link(struct btrfs_fs_devices *fs_devices, in btrfs_sysfs_rm_device_link() argument
725 if (!fs_devices->device_dir_kobj) in btrfs_sysfs_rm_device_link()
732 sysfs_remove_link(fs_devices->device_dir_kobj, in btrfs_sysfs_rm_device_link()
740 &fs_devices->devices, dev_list) { in btrfs_sysfs_rm_device_link()
746 sysfs_remove_link(fs_devices->device_dir_kobj, in btrfs_sysfs_rm_device_link()
765 int btrfs_sysfs_add_device_link(struct btrfs_fs_devices *fs_devices, in btrfs_sysfs_add_device_link() argument
773 list_for_each_entry(dev, &fs_devices->devices, dev_list) { in btrfs_sysfs_add_device_link()
786 error = sysfs_create_link(fs_devices->device_dir_kobj, in btrfs_sysfs_add_device_link()
829 struct btrfs_fs_devices *fs_devs = fs_info->fs_devices; in btrfs_sysfs_add_mounted()
889 fs_devs = fs_info->fs_devices; in btrfs_sysfs_feature_update()