]> git.hungrycats.org Git - linux/commitdiff
Revert "Export dev_item.type in sysfs /sys/fs/btrfs/<uuid>/devinfo/<devid>/type"
authorZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Sun, 5 Dec 2021 08:07:37 +0000 (03:07 -0500)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Sun, 5 Dec 2021 08:07:37 +0000 (03:07 -0500)
This reverts commit 5da7b4d10dc5008e4a73494aef7eada7c407e640.

fs/btrfs/sysfs.c

index faf25cd9f691d3ecea4029160f941cba493176fe..d4998fb8e406eeb0266409416f48fc42d5956f2d 100644 (file)
@@ -1445,23 +1445,12 @@ static ssize_t btrfs_devinfo_writeable_show(struct kobject *kobj,
 }
 BTRFS_ATTR(devid, writeable, btrfs_devinfo_writeable_show);
 
-static ssize_t btrfs_devinfo_type_show(struct kobject *kobj,
-                                           struct kobj_attribute *a, char *buf)
-{
-       struct btrfs_device *device = container_of(kobj, struct btrfs_device,
-                                                  devid_kobj);
-
-       return scnprintf(buf, PAGE_SIZE, "0x%08llx\n",device->type);
-}
-BTRFS_ATTR(devid, type, btrfs_devinfo_type_show);
-
 static struct attribute *devid_attrs[] = {
        BTRFS_ATTR_PTR(devid, in_fs_metadata),
        BTRFS_ATTR_PTR(devid, missing),
        BTRFS_ATTR_PTR(devid, replace_target),
        BTRFS_ATTR_PTR(devid, scrub_speed_max),
        BTRFS_ATTR_PTR(devid, writeable),
-       BTRFS_ATTR_PTR(devid, type),
        NULL
 };
 ATTRIBUTE_GROUPS(devid);