summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/sysfs.c
diff options
context:
space:
mode:
authorAnand Jain <anand.jain@oracle.com>2014-06-03 05:35:59 +0200
committerChris Mason <clm@fb.com>2014-06-28 22:48:41 +0200
commit9b4eaf43f4b0207b5d1ca8b8d22df88ea9e142fe (patch)
tree41357b8f5737a528ca39eb340c7c18102f90a411 /fs/btrfs/sysfs.c
parentBtrfs: fix wrong error handle when the device is missing or is not writeable (diff)
downloadlinux-9b4eaf43f4b0207b5d1ca8b8d22df88ea9e142fe.tar.xz
linux-9b4eaf43f4b0207b5d1ca8b8d22df88ea9e142fe.zip
btrfs: rename add_device_membership to btrfs_kobj_add_device
Signed-off-by: Anand Jain <anand.jain@oracle.com> Reviewed-by: David Sterba <dsterba@suse.cz> Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/sysfs.c')
-rw-r--r--fs/btrfs/sysfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/sysfs.c b/fs/btrfs/sysfs.c
index df39458f1487..1395efbffa2d 100644
--- a/fs/btrfs/sysfs.c
+++ b/fs/btrfs/sysfs.c
@@ -605,7 +605,7 @@ static void init_feature_attrs(void)
}
}
-static int add_device_membership(struct btrfs_fs_info *fs_info)
+static int btrfs_kobj_add_device(struct btrfs_fs_info *fs_info)
{
int error = 0;
struct btrfs_fs_devices *fs_devices = fs_info->fs_devices;
@@ -666,7 +666,7 @@ int btrfs_sysfs_add_one(struct btrfs_fs_info *fs_info)
if (error)
goto failure;
- error = add_device_membership(fs_info);
+ error = btrfs_kobj_add_device(fs_info);
if (error)
goto failure;