Searched refs:fs_devs (Results 1 – 3 of 3) sorted by relevance
520 struct btrfs_fs_devices *fs_devs = to_fs_devs(kobj); in btrfs_release_fsid_kobj() local522 memset(&fs_devs->fsid_kobj, 0, sizeof(struct kobject)); in btrfs_release_fsid_kobj()523 complete(&fs_devs->kobj_unregister); in btrfs_release_fsid_kobj()597 static void __btrfs_sysfs_remove_fsid(struct btrfs_fs_devices *fs_devs) in __btrfs_sysfs_remove_fsid() argument599 if (fs_devs->device_dir_kobj) { in __btrfs_sysfs_remove_fsid()600 kobject_del(fs_devs->device_dir_kobj); in __btrfs_sysfs_remove_fsid()601 kobject_put(fs_devs->device_dir_kobj); in __btrfs_sysfs_remove_fsid()602 fs_devs->device_dir_kobj = NULL; in __btrfs_sysfs_remove_fsid()605 if (fs_devs->fsid_kobj.state_initialized) { in __btrfs_sysfs_remove_fsid()606 kobject_del(&fs_devs->fsid_kobj); in __btrfs_sysfs_remove_fsid()[all …]
87 int btrfs_sysfs_add_fsid(struct btrfs_fs_devices *fs_devs,89 int btrfs_sysfs_add_device(struct btrfs_fs_devices *fs_devs);90 void btrfs_sysfs_remove_fsid(struct btrfs_fs_devices *fs_devs);
256 struct btrfs_fs_devices *fs_devs; in alloc_fs_devices() local258 fs_devs = kzalloc(sizeof(*fs_devs), GFP_KERNEL); in alloc_fs_devices()259 if (!fs_devs) in alloc_fs_devices()262 mutex_init(&fs_devs->device_list_mutex); in alloc_fs_devices()264 INIT_LIST_HEAD(&fs_devs->devices); in alloc_fs_devices()265 INIT_LIST_HEAD(&fs_devs->resized_devices); in alloc_fs_devices()266 INIT_LIST_HEAD(&fs_devs->alloc_list); in alloc_fs_devices()267 INIT_LIST_HEAD(&fs_devs->fs_list); in alloc_fs_devices()269 memcpy(fs_devs->fsid, fsid, BTRFS_FSID_SIZE); in alloc_fs_devices()271 return fs_devs; in alloc_fs_devices()[all …]