]> 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:37:26 +0000 (03:37 -0500)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Sun, 5 Dec 2021 08:37:26 +0000 (03:37 -0500)
This reverts commit 9730bfafb34c64cd2af7279379c447f640dab0ae.

fs/btrfs/sysfs.c

index afd0d49761f3755f525da2728b0ee3e4ce12a842..bc093d78d92d039c109e2a4c66a0144a37ed40a5 100644 (file)
@@ -1497,23 +1497,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);