btrfs: sysfs, rename btrfs_sysfs_add_device()
btrfs_sysfs_add_device() creates the directory /sys/fs/btrfs/UUID/devices but its function name is misleading. Rename it to btrfs_sysfs_add_devices_kobj() instead. No functional changes. Signed-off-by: Anand Jain <anand.jain@oracle.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
c6761a9ed3
commit
be2cf92e0a
|
@ -3089,7 +3089,7 @@ int __cold open_ctree(struct super_block *sb,
|
|||
goto fail_block_groups;
|
||||
}
|
||||
|
||||
ret = btrfs_sysfs_add_device(fs_devices);
|
||||
ret = btrfs_sysfs_add_devices_kobj(fs_devices);
|
||||
if (ret) {
|
||||
btrfs_err(fs_info, "failed to init sysfs device interface: %d",
|
||||
ret);
|
||||
|
|
|
@ -995,7 +995,7 @@ int btrfs_sysfs_rm_device_link(struct btrfs_fs_devices *fs_devices,
|
|||
return 0;
|
||||
}
|
||||
|
||||
int btrfs_sysfs_add_device(struct btrfs_fs_devices *fs_devs)
|
||||
int btrfs_sysfs_add_devices_kobj(struct btrfs_fs_devices *fs_devs)
|
||||
{
|
||||
if (!fs_devs->devices_kobj)
|
||||
fs_devs->devices_kobj = kobject_create_and_add("devices",
|
||||
|
|
Loading…
Reference in New Issue