Home
last modified time | relevance | path

Searched refs:fs_devs (Results 1 – 2 of 2) sorted by relevance

/linux/fs/btrfs/
H A Dsysfs.c1568 struct btrfs_fs_devices *fs_devs = to_fs_devs(kobj); in btrfs_release_fsid_kobj() local
1570 memset(&fs_devs->fsid_kobj, 0, sizeof(struct kobject)); in btrfs_release_fsid_kobj()
1571 complete(&fs_devs->kobj_unregister); in btrfs_release_fsid_kobj()
1660 static void __btrfs_sysfs_remove_fsid(struct btrfs_fs_devices *fs_devs) in __btrfs_sysfs_remove_fsid() argument
1662 if (fs_devs->devinfo_kobj) { in __btrfs_sysfs_remove_fsid()
1663 kobject_del(fs_devs->devinfo_kobj); in __btrfs_sysfs_remove_fsid()
1664 kobject_put(fs_devs->devinfo_kobj); in __btrfs_sysfs_remove_fsid()
1665 fs_devs->devinfo_kobj = NULL; in __btrfs_sysfs_remove_fsid()
1668 if (fs_devs->devices_kobj) { in __btrfs_sysfs_remove_fsid()
1669 kobject_del(fs_devs->devices_kobj); in __btrfs_sysfs_remove_fsid()
[all …]
H A Dvolumes.c383 struct btrfs_fs_devices *fs_devs; in alloc_fs_devices() local
385 fs_devs = kzalloc_obj(*fs_devs); in alloc_fs_devices()
386 if (!fs_devs) in alloc_fs_devices()
389 mutex_init(&fs_devs->device_list_mutex); in alloc_fs_devices()
391 INIT_LIST_HEAD(&fs_devs->devices); in alloc_fs_devices()
392 INIT_LIST_HEAD(&fs_devs->alloc_list); in alloc_fs_devices()
393 INIT_LIST_HEAD(&fs_devs->fs_list); in alloc_fs_devices()
394 INIT_LIST_HEAD(&fs_devs->seed_list); in alloc_fs_devices()
397 memcpy(fs_devs->fsid, fsid, BTRFS_FSID_SIZE); in alloc_fs_devices()
398 memcpy(fs_devs->metadata_uuid, fsid, BTRFS_FSID_SIZE); in alloc_fs_devices()
[all …]