From: Zygo Blaxell Date: Sun, 5 Dec 2021 08:07:37 +0000 (-0500) Subject: Revert "Export dev_item.type in sysfs /sys/fs/btrfs//devinfo//type" X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=151a21c3fe99a2d6bdddc143dd9a73080b74b2a6;p=linux Revert "Export dev_item.type in sysfs /sys/fs/btrfs//devinfo//type" This reverts commit 5da7b4d10dc5008e4a73494aef7eada7c407e640. --- diff --git a/fs/btrfs/sysfs.c b/fs/btrfs/sysfs.c index faf25cd9f691..d4998fb8e406 100644 --- a/fs/btrfs/sysfs.c +++ b/fs/btrfs/sysfs.c @@ -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);