diff options
author | Anand Jain <anand.jain@oracle.com> | 2019-11-21 10:33:33 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-01-20 16:40:50 +0100 |
commit | be2cf92e0a2f64efe0709a2cfe5d9f4852d14b61 (patch) | |
tree | 636dc9db54b8200fa1a2dd3841b4d1d3221c0a36 /fs/btrfs/sysfs.c | |
parent | btrfs: sysfs, btrfs_sysfs_add_fsid() drop unused argument parent (diff) | |
download | linux-be2cf92e0a2f64efe0709a2cfe5d9f4852d14b61.tar.xz linux-be2cf92e0a2f64efe0709a2cfe5d9f4852d14b61.zip |
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>
Diffstat (limited to 'fs/btrfs/sysfs.c')
-rw-r--r-- | fs/btrfs/sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/sysfs.c b/fs/btrfs/sysfs.c index 1d8ee57da164..c76c38d74972 100644 --- a/fs/btrfs/sysfs.c +++ b/fs/btrfs/sysfs.c @@ -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", |