Lines Matching refs:fs_devices

746 	if (!fs_info->fs_devices)  in btrfs_chunk_size_store()
765 val = min(div_factor(fs_info->fs_devices->total_rw_bytes, 1), val); in btrfs_chunk_size_store()
1086 return sysfs_emit(buf, "%pU\n", fs_info->fs_devices->metadata_uuid); in btrfs_metadata_uuid_show()
1157 struct btrfs_fs_devices *fs_devices = to_fs_devs(kobj); in btrfs_read_policy_show() local
1162 if (fs_devices->read_policy == i) in btrfs_read_policy_show()
1181 struct btrfs_fs_devices *fs_devices = to_fs_devs(kobj); in btrfs_read_policy_store() local
1186 if (i != fs_devices->read_policy) { in btrfs_read_policy_store()
1187 fs_devices->read_policy = i; in btrfs_read_policy_store()
1188 btrfs_info(fs_devices->fs_info, in btrfs_read_policy_store()
1333 ret = sysfs_merge_group(&fs_info->fs_devices->fsid_kobj, in addrm_unknown_feature_attrs()
1338 sysfs_unmerge_group(&fs_info->fs_devices->fsid_kobj, in addrm_unknown_feature_attrs()
1382 static void btrfs_sysfs_remove_fs_devices(struct btrfs_fs_devices *fs_devices) in btrfs_sysfs_remove_fs_devices() argument
1387 list_for_each_entry(device, &fs_devices->devices, dev_list) in btrfs_sysfs_remove_fs_devices()
1390 list_for_each_entry(seed, &fs_devices->seed_list, seed_list) { in btrfs_sysfs_remove_fs_devices()
1398 struct kobject *fsid_kobj = &fs_info->fs_devices->fsid_kobj; in btrfs_sysfs_remove_mounted()
1422 btrfs_sysfs_remove_fs_devices(fs_info->fs_devices); in btrfs_sysfs_remove_mounted()
1633 devices_kobj = device->fs_info->fs_devices->devices_kobj; in btrfs_sysfs_remove_device()
1732 return sysfs_emit(buf, "%pU\n", device->fs_devices->fsid); in btrfs_devinfo_fsid_show()
1807 devices_kobj = device->fs_info->fs_devices->devices_kobj; in btrfs_sysfs_add_device()
1808 devinfo_kobj = device->fs_info->fs_devices->devinfo_kobj; in btrfs_sysfs_add_device()
1841 static int btrfs_sysfs_add_fs_devices(struct btrfs_fs_devices *fs_devices) in btrfs_sysfs_add_fs_devices() argument
1847 list_for_each_entry(device, &fs_devices->devices, dev_list) { in btrfs_sysfs_add_fs_devices()
1853 list_for_each_entry(seed, &fs_devices->seed_list, seed_list) { in btrfs_sysfs_add_fs_devices()
1864 btrfs_sysfs_remove_fs_devices(fs_devices); in btrfs_sysfs_add_fs_devices()
1879 void btrfs_sysfs_update_sprout_fsid(struct btrfs_fs_devices *fs_devices) in btrfs_sysfs_update_sprout_fsid() argument
1888 snprintf(fsid_buf, BTRFS_UUID_UNPARSED_SIZE, "%pU", fs_devices->fsid); in btrfs_sysfs_update_sprout_fsid()
1889 if (kobject_rename(&fs_devices->fsid_kobj, fsid_buf)) in btrfs_sysfs_update_sprout_fsid()
1890 btrfs_warn(fs_devices->fs_info, in btrfs_sysfs_update_sprout_fsid()
1901 btrfs_warn(device->fs_devices->fs_info, in btrfs_sysfs_update_devid()
1952 struct btrfs_fs_devices *fs_devs = fs_info->fs_devices; in btrfs_sysfs_add_mounted()
2223 struct kobject *fsid_kobj = &fs_info->fs_devices->fsid_kobj; in btrfs_sysfs_add_qgroups()
2291 fs_devs = fs_info->fs_devices; in btrfs_sysfs_feature_update()