summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/volumes.c
diff options
context:
space:
mode:
authorAnand Jain2017-11-06 09:36:15 +0100
committerDavid Sterba2018-01-22 16:08:11 +0100
commitc74a0b0237c47806e43c1dc6f875c88fb9ee2525 (patch)
tree7a0a06e490ab11693b84de05ce01380023a09184 /fs/btrfs/volumes.c
parentbtrfs: Don't generate UUID for non-fs tree (diff)
downloadkernel-qcow2-linux-c74a0b0237c47806e43c1dc6f875c88fb9ee2525.tar.gz
kernel-qcow2-linux-c74a0b0237c47806e43c1dc6f875c88fb9ee2525.tar.xz
kernel-qcow2-linux-c74a0b0237c47806e43c1dc6f875c88fb9ee2525.zip
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>
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r--fs/btrfs/volumes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index 02b2c9ec6fcd..9d2af9f53a65 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -1645,7 +1645,7 @@ error:
* the device information is stored in the chunk root
* 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_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) {
btrfs_abort_transaction(trans, ret);
goto error_sysfs;