Btrfs: rename btrfs_kobj_add_device to btrfs_sysfs_add_device_link
authorAnand Jain <anand.jain@oracle.com>
Fri, 14 Aug 2015 10:32:48 +0000 (18:32 +0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 29 Sep 2015 14:29:59 +0000 (16:29 +0200)
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/dev-replace.c
fs/btrfs/sysfs.c
fs/btrfs/sysfs.h
fs/btrfs/volumes.c

index e54dd5905cee177912e03c915a8d471762bfc0cd..200c972c45d4471fea3e7897311635eb8d40d9b1 100644 (file)
@@ -375,7 +375,7 @@ int btrfs_dev_replace_start(struct btrfs_root *root,
        WARN_ON(!tgt_device);
        dev_replace->tgtdev = tgt_device;
 
-       ret = btrfs_kobj_add_device(tgt_device->fs_devices, tgt_device);
+       ret = btrfs_sysfs_add_device_link(tgt_device->fs_devices, tgt_device);
        if (ret)
                btrfs_err(root->fs_info, "kobj add dev failed %d\n", ret);
 
index 095a302417ef555118d17c598c6c40e739e07976..df67f6bee2a95cf3f410f6cc376e40962c1b1b5c 100644 (file)
@@ -683,7 +683,7 @@ int btrfs_sysfs_add_device(struct btrfs_fs_devices *fs_devs)
        return 0;
 }
 
-int btrfs_kobj_add_device(struct btrfs_fs_devices *fs_devices,
+int btrfs_sysfs_add_device_link(struct btrfs_fs_devices *fs_devices,
                                struct btrfs_device *one_device)
 {
        int error = 0;
@@ -744,7 +744,7 @@ int btrfs_sysfs_add_mounted(struct btrfs_fs_info *fs_info)
 
        btrfs_set_fs_info_ptr(fs_info);
 
-       error = btrfs_kobj_add_device(fs_devs, NULL);
+       error = btrfs_sysfs_add_device_link(fs_devs, NULL);
        if (error)
                return error;
 
index 6392527bcc15d5e56b66d39a3faac72fba730e2f..6529680f0b422512773893e6bf7dee75eeb4993d 100644 (file)
@@ -82,7 +82,7 @@ char *btrfs_printable_features(enum btrfs_feature_set set, u64 flags);
 extern const char * const btrfs_feature_set_names[3];
 extern struct kobj_type space_info_ktype;
 extern struct kobj_type btrfs_raid_ktype;
-int btrfs_kobj_add_device(struct btrfs_fs_devices *fs_devices,
+int btrfs_sysfs_add_device_link(struct btrfs_fs_devices *fs_devices,
                struct btrfs_device *one_device);
 int btrfs_kobj_rm_device(struct btrfs_fs_devices *fs_devices,
                 struct btrfs_device *one_device);
index 6fc735869c186c35fb79fa66decc7d3519ed2e93..d22029ad9b1e77516d31ebc5b331bbad7e9bb6e4 100644 (file)
@@ -2309,7 +2309,7 @@ int btrfs_init_new_device(struct btrfs_root *root, char *device_path)
                                    tmp + 1);
 
        /* add sysfs device entry */
-       btrfs_kobj_add_device(root->fs_info->fs_devices, device);
+       btrfs_sysfs_add_device_link(root->fs_info->fs_devices, device);
 
        /*
         * we've got more storage, clear any full flags on the space