diff options
-rw-r--r-- | fs/btrfs/extent-tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index fe651f4d1b93..f08f6dda949f 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c | |||
@@ -6195,7 +6195,7 @@ static const char *btrfs_raid_type_names[BTRFS_NR_RAID_TYPES] = { | |||
6195 | [BTRFS_RAID_RAID6] = "raid6", | 6195 | [BTRFS_RAID_RAID6] = "raid6", |
6196 | }; | 6196 | }; |
6197 | 6197 | ||
6198 | const char *get_raid_name(enum btrfs_raid_types type) | 6198 | static const char *get_raid_name(enum btrfs_raid_types type) |
6199 | { | 6199 | { |
6200 | if (type >= BTRFS_NR_RAID_TYPES) | 6200 | if (type >= BTRFS_NR_RAID_TYPES) |
6201 | return NULL; | 6201 | return NULL; |
@@ -8423,7 +8423,7 @@ static void __link_block_group(struct btrfs_space_info *space_info, | |||
8423 | 8423 | ||
8424 | kobject_get(&space_info->kobj); /* put in release */ | 8424 | kobject_get(&space_info->kobj); /* put in release */ |
8425 | ret = kobject_init_and_add(kobj, &btrfs_raid_ktype, | 8425 | ret = kobject_init_and_add(kobj, &btrfs_raid_ktype, |
8426 | &space_info->kobj, | 8426 | &space_info->kobj, "%s", |
8427 | get_raid_name(index)); | 8427 | get_raid_name(index)); |
8428 | if (ret) { | 8428 | if (ret) { |
8429 | pr_warn("btrfs: failed to add kobject for block cache. ignoring.\n"); | 8429 | pr_warn("btrfs: failed to add kobject for block cache. ignoring.\n"); |