Searched refs:fs_devs (Results 1 – 3 of 3) sorted by relevance
| /Linux-v5.4/fs/btrfs/ |
| D | sysfs.c | 619 struct btrfs_fs_devices *fs_devs = to_fs_devs(kobj); in btrfs_release_fsid_kobj() local 621 memset(&fs_devs->fsid_kobj, 0, sizeof(struct kobject)); in btrfs_release_fsid_kobj() 622 complete(&fs_devs->kobj_unregister); in btrfs_release_fsid_kobj() 696 static void __btrfs_sysfs_remove_fsid(struct btrfs_fs_devices *fs_devs) in __btrfs_sysfs_remove_fsid() argument 698 if (fs_devs->device_dir_kobj) { in __btrfs_sysfs_remove_fsid() 699 kobject_del(fs_devs->device_dir_kobj); in __btrfs_sysfs_remove_fsid() 700 kobject_put(fs_devs->device_dir_kobj); in __btrfs_sysfs_remove_fsid() 701 fs_devs->device_dir_kobj = NULL; in __btrfs_sysfs_remove_fsid() 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() [all …]
|
| D | sysfs.h | 21 int btrfs_sysfs_add_fsid(struct btrfs_fs_devices *fs_devs, 23 int btrfs_sysfs_add_device(struct btrfs_fs_devices *fs_devs); 24 void btrfs_sysfs_remove_fsid(struct btrfs_fs_devices *fs_devs);
|
| D | volumes.c | 317 struct btrfs_fs_devices *fs_devs; in alloc_fs_devices() local 319 fs_devs = kzalloc(sizeof(*fs_devs), GFP_KERNEL); in alloc_fs_devices() 320 if (!fs_devs) in alloc_fs_devices() 323 mutex_init(&fs_devs->device_list_mutex); in alloc_fs_devices() 325 INIT_LIST_HEAD(&fs_devs->devices); in alloc_fs_devices() 326 INIT_LIST_HEAD(&fs_devs->alloc_list); in alloc_fs_devices() 327 INIT_LIST_HEAD(&fs_devs->fs_list); in alloc_fs_devices() 329 memcpy(fs_devs->fsid, fsid, BTRFS_FSID_SIZE); in alloc_fs_devices() 332 memcpy(fs_devs->metadata_uuid, metadata_fsid, BTRFS_FSID_SIZE); in alloc_fs_devices() 334 memcpy(fs_devs->metadata_uuid, fsid, BTRFS_FSID_SIZE); in alloc_fs_devices() [all …]
|