Home
last modified time | relevance | path

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

/Linux-v5.10/fs/btrfs/
Dsysfs.c871 struct btrfs_fs_devices *fs_devs = to_fs_devs(kobj); in btrfs_release_fsid_kobj() local
873 memset(&fs_devs->fsid_kobj, 0, sizeof(struct kobject)); in btrfs_release_fsid_kobj()
874 complete(&fs_devs->kobj_unregister); in btrfs_release_fsid_kobj()
948 static void __btrfs_sysfs_remove_fsid(struct btrfs_fs_devices *fs_devs) in __btrfs_sysfs_remove_fsid() argument
950 if (fs_devs->devinfo_kobj) { in __btrfs_sysfs_remove_fsid()
951 kobject_del(fs_devs->devinfo_kobj); in __btrfs_sysfs_remove_fsid()
952 kobject_put(fs_devs->devinfo_kobj); in __btrfs_sysfs_remove_fsid()
953 fs_devs->devinfo_kobj = NULL; in __btrfs_sysfs_remove_fsid()
956 if (fs_devs->devices_kobj) { in __btrfs_sysfs_remove_fsid()
957 kobject_del(fs_devs->devices_kobj); in __btrfs_sysfs_remove_fsid()
[all …]
Dsysfs.h19 int btrfs_sysfs_add_fsid(struct btrfs_fs_devices *fs_devs);
20 void btrfs_sysfs_remove_fsid(struct btrfs_fs_devices *fs_devs);
Dvolumes.c348 struct btrfs_fs_devices *fs_devs; in alloc_fs_devices() local
350 fs_devs = kzalloc(sizeof(*fs_devs), GFP_KERNEL); in alloc_fs_devices()
351 if (!fs_devs) in alloc_fs_devices()
354 mutex_init(&fs_devs->device_list_mutex); in alloc_fs_devices()
356 INIT_LIST_HEAD(&fs_devs->devices); in alloc_fs_devices()
357 INIT_LIST_HEAD(&fs_devs->alloc_list); in alloc_fs_devices()
358 INIT_LIST_HEAD(&fs_devs->fs_list); in alloc_fs_devices()
359 INIT_LIST_HEAD(&fs_devs->seed_list); in alloc_fs_devices()
361 memcpy(fs_devs->fsid, fsid, BTRFS_FSID_SIZE); in alloc_fs_devices()
364 memcpy(fs_devs->metadata_uuid, metadata_fsid, BTRFS_FSID_SIZE); in alloc_fs_devices()
[all …]