Commit be2cf92e authored by Anand Jain's avatar Anand Jain Committed by David Sterba
Browse files

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: default avatarAnand Jain <anand.jain@oracle.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent c6761a9e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
+1 −1
Original line number Diff line number Diff line
@@ -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",