Home
last modified time | relevance | path

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

/Linux-v4.19/fs/btrfs/
Dsysfs.c519 struct btrfs_fs_devices *fs_devs = to_fs_devs(kobj); in btrfs_release_fsid_kobj() local
521 memset(&fs_devs->fsid_kobj, 0, sizeof(struct kobject)); in btrfs_release_fsid_kobj()
522 complete(&fs_devs->kobj_unregister); in btrfs_release_fsid_kobj()
596 static void __btrfs_sysfs_remove_fsid(struct btrfs_fs_devices *fs_devs) in __btrfs_sysfs_remove_fsid() argument
598 if (fs_devs->device_dir_kobj) { in __btrfs_sysfs_remove_fsid()
599 kobject_del(fs_devs->device_dir_kobj); in __btrfs_sysfs_remove_fsid()
600 kobject_put(fs_devs->device_dir_kobj); in __btrfs_sysfs_remove_fsid()
601 fs_devs->device_dir_kobj = NULL; in __btrfs_sysfs_remove_fsid()
604 if (fs_devs->fsid_kobj.state_initialized) { in __btrfs_sysfs_remove_fsid()
605 kobject_del(&fs_devs->fsid_kobj); in __btrfs_sysfs_remove_fsid()
[all …]
Dsysfs.h87 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);
Dvolumes.c249 struct btrfs_fs_devices *fs_devs; in alloc_fs_devices() local
251 fs_devs = kzalloc(sizeof(*fs_devs), GFP_KERNEL); in alloc_fs_devices()
252 if (!fs_devs) in alloc_fs_devices()
255 mutex_init(&fs_devs->device_list_mutex); in alloc_fs_devices()
257 INIT_LIST_HEAD(&fs_devs->devices); in alloc_fs_devices()
258 INIT_LIST_HEAD(&fs_devs->resized_devices); in alloc_fs_devices()
259 INIT_LIST_HEAD(&fs_devs->alloc_list); in alloc_fs_devices()
260 INIT_LIST_HEAD(&fs_devs->fs_list); in alloc_fs_devices()
262 memcpy(fs_devs->fsid, fsid, BTRFS_FSID_SIZE); in alloc_fs_devices()
264 return fs_devs; in alloc_fs_devices()
[all …]