btrfs: rename btrfs_add_device to btrfs_add_dev_item

Function btrfs_add_device() is adding the device item so rename to
reflect that in the function. Similarly we have btrfs_rm_dev_item().

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:
Anand Jain 2017-11-06 16:36:15 +08:00 committed by David Sterba
parent 33d85fda13
commit c74a0b0237

View File

@ -1645,7 +1645,7 @@ error:
* the device information is stored in the chunk root * the device information is stored in the chunk root
* the btrfs_device struct should be fully filled in * the btrfs_device struct should be fully filled in
*/ */
static int btrfs_add_device(struct btrfs_trans_handle *trans, static int btrfs_add_dev_item(struct btrfs_trans_handle *trans,
struct btrfs_fs_info *fs_info, struct btrfs_fs_info *fs_info,
struct btrfs_device *device) struct btrfs_device *device)
{ {
@ -2435,7 +2435,7 @@ int btrfs_init_new_device(struct btrfs_fs_info *fs_info, const char *device_path
} }
} }
ret = btrfs_add_device(trans, fs_info, device); ret = btrfs_add_dev_item(trans, fs_info, device);
if (ret) { if (ret) {
btrfs_abort_transaction(trans, ret); btrfs_abort_transaction(trans, ret);
goto error_sysfs; goto error_sysfs;