Home
last modified time | relevance | path

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

/linux-4.4.14/fs/btrfs/
Dsysfs.c442 struct btrfs_fs_devices *fs_devs = to_fs_devs(kobj); in btrfs_release_fsid_kobj() local
444 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() argument
520 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 …]
Dsysfs.h89 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);
Dvolumes.c138 struct btrfs_fs_devices *fs_devs; in __alloc_fs_devices() local
140 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 …]