Searched refs:fs_devs (Results 1 – 3 of 3) sorted by relevance
442 struct btrfs_fs_devices *fs_devs = to_fs_devs(kobj); in btrfs_release_fsid_kobj() local444 memset(&fs_devs->fsid_kobj, 0, sizeof(struct kobject)); in btrfs_release_fsid_kobj()445 complete(&fs_devs->kobj_unregister); in btrfs_release_fsid_kobj()518 static void __btrfs_sysfs_remove_fsid(struct btrfs_fs_devices *fs_devs) in __btrfs_sysfs_remove_fsid() argument520 if (fs_devs->device_dir_kobj) { in __btrfs_sysfs_remove_fsid()521 kobject_del(fs_devs->device_dir_kobj); in __btrfs_sysfs_remove_fsid()522 kobject_put(fs_devs->device_dir_kobj); in __btrfs_sysfs_remove_fsid()523 fs_devs->device_dir_kobj = NULL; in __btrfs_sysfs_remove_fsid()526 if (fs_devs->fsid_kobj.state_initialized) { in __btrfs_sysfs_remove_fsid()527 kobject_del(&fs_devs->fsid_kobj); in __btrfs_sysfs_remove_fsid()[all …]
89 int btrfs_sysfs_add_fsid(struct btrfs_fs_devices *fs_devs,91 int btrfs_sysfs_add_device(struct btrfs_fs_devices *fs_devs);92 void btrfs_sysfs_remove_fsid(struct btrfs_fs_devices *fs_devs);
138 struct btrfs_fs_devices *fs_devs; in __alloc_fs_devices() local140 fs_devs = kzalloc(sizeof(*fs_devs), GFP_NOFS); in __alloc_fs_devices()141 if (!fs_devs) in __alloc_fs_devices()144 mutex_init(&fs_devs->device_list_mutex); in __alloc_fs_devices()146 INIT_LIST_HEAD(&fs_devs->devices); in __alloc_fs_devices()147 INIT_LIST_HEAD(&fs_devs->resized_devices); in __alloc_fs_devices()148 INIT_LIST_HEAD(&fs_devs->alloc_list); in __alloc_fs_devices()149 INIT_LIST_HEAD(&fs_devs->list); in __alloc_fs_devices()151 return fs_devs; in __alloc_fs_devices()165 struct btrfs_fs_devices *fs_devs; in alloc_fs_devices() local[all …]