btrfs: sysfs, rename btrfs_sysfs_add_device()
authorAnand Jain <anand.jain@oracle.com>
Thu, 21 Nov 2019 09:33:33 +0000 (17:33 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 20 Jan 2020 15:40:50 +0000 (16:40 +0100)
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>
fs/btrfs/disk-io.c
fs/btrfs/sysfs.c

index 6391043266910e3fabee9c439fc9fa851eab1002..65cfd0fd0f832a83e7d7b5211efde2f886c028b2 100644 (file)
@@ -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);
index 1d8ee57da164a7b50590b9e341b433288e4a9c76..c76c38d749724bf29eb074e64c9ae1599995dabe 100644 (file)
@@ -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",