scsi: ufs: core: Fix spelling of a sysfs attribute name
Subsystems (2)
Bart Van Assche
reviewerPATCH 1/1 scsi: ufs: core: Fix spelling of a sysfs attribute name
Change "resourse" into "resource" in the name of a sysfs attribute.
--- Documentation/ABI/testing/sysfs-driver-ufs | 2 +- drivers/ufs/core/ufs-sysfs.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
Documentation/ABI/testing/sysfs-driver-ufs +1 -1
@@ -711,7 +711,7 @@ Description: This file shows the thin provisioning type. This is one of The file is read only. -What: /sys/class/scsi_device/*/device/unit_descriptor/physical_memory_resourse_count +What: /sys/class/scsi_device/*/device/unit_descriptor/physical_memory_resource_count Date: February 2018 Contact: Stanislav Nijnikov <[email protected]> Description: This file shows the total physical memory resources. This is
drivers/ufs/core/ufs-sysfs.c +2 -2
@@ -1998,7 +1998,7 @@ UFS_UNIT_DESC_PARAM(logical_block_size, _LOGICAL_BLK_SIZE, 1);UFS_UNIT_DESC_PARAM (logical_block_count, _LOGICAL_BLK_COUNT,8 );UFS_UNIT_DESC_PARAM (erase_block_size, _ERASE_BLK_SIZE,4 );UFS_UNIT_DESC_PARAM (provisioning_type, _PROVISIONING_TYPE,1 ); -UFS_UNIT_DESC_PARAM (physical_memory_resourse_count, _PHY_MEM_RSRC_CNT,8 ); +UFS_UNIT_DESC_PARAM (physical_memory_resource_count, _PHY_MEM_RSRC_CNT,8 );UFS_UNIT_DESC_PARAM (context_capabilities, _CTX_CAPABILITIES,2 );UFS_UNIT_DESC_PARAM (large_unit_granularity, _LARGE_UNIT_SIZE_M1,1 );UFS_UNIT_DESC_PARAM (wb_buf_alloc_units, _WB_BUF_ALLOC_UNITS,4 );
@@ -2015,7 +2015,7 @@ static struct attribute *ufs_sysfs_unit_descriptor[] = { &dev_attr_logical_block_count.attr, &dev_attr_erase_block_size.attr, &dev_attr_provisioning_type.attr, - &dev_attr_physical_memory_resourse_count.attr, + &dev_attr_physical_memory_resource_count.attr, &dev_attr_context_capabilities.attr, &dev_attr_large_unit_granularity.attr, &dev_attr_wb_buf_alloc_units.attr,
Quoted 4 lines
Change "resourse" into "resource" in the name of a sysfs attribute.
Fixes d829fc8a1058 ("scsi: ufs: sysfs: unit descriptor")Signed-off-by Bart Van Assche <[email protected]>
Quoted 9 lines · Bart Van Assche
External email : Please do not click links or open attachments until you have verified the sender or the content.
Change "resourse" into "resource" in the name of a sysfs attribute.
Fixes d829fc8a1058 ("scsi: ufs: sysfs: unit descriptor")Signed-off-by Bart Van Assche <[email protected]>
Quoted 14 lines · Bart Van Assche
Change "resourse" into "resource" in the name of a sysfs attribute.
Fixes d829fc8a1058 ("scsi: ufs: sysfs: unit descriptor")Signed-off-by Bart Van Assche <[email protected]>--- Documentation/ABI/testing/sysfs-driver-ufs | 2 +- drivers/ufs/core/ufs-sysfs.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)Documentation/ABI/testing/sysfs-driver-ufs +0
-0
Documentation/ABI/testing/sysfs-driver-ufs Description: This file shows the thin provisioning type. This is one of · line 715
Quoted 6 lines
Documentation/ABI/testing/sysfs-driver-ufs +1
-1@@ -711,7 +711,7 @@ Description: This file shows the thin provisioning type. This is one of The file is read only. -What: /sys/class/scsi_device/*/device/unit_descriptor/physical_memory_resourse_count +What: /sys/class/scsi_device/*/device/unit_descriptor/physical_memory_resource_count Date: February 2018
As you are changing the name of a sysfs file that has been in the kernel for a very long time, what userspace code is now going to break that was using the old name?
thanks,
greg k-h
Quoted 23 lines · Bart Van Assche
Documentation/ABI/testing/sysfs-driver-ufs Description: This file shows the thin provisioning
Quoted 15 lines
Change "resourse" into "resource" in the name of a sysfs attribute.
Fixes d829fc8a1058 ("scsi: ufs: sysfs: unit descriptor")Signed-off-by Bart Van Assche <[email protected]>--- Documentation/ABI/testing/sysfs-driver-ufs | 2 +- drivers/ufs/core/ufs-sysfs.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)Documentation/ABI/testing/sysfs-driver-ufs +0
-0@@ -711,7 +711,7 @@ Description: This file shows the thin provisioningtype. This is one of
Documentation/ABI/testing/sysfs-driver-ufs Description: This file shows the thin provisioning type. This is one of
Quoted 4 lines
Documentation/ABI/testing/sysfs-driver-ufs +0
-1The file is read only. -What:
/sys/class/scsi_device/*/device/unit_descriptor/physical_memory_resourse_count
Quoted 8 lines
Documentation/ABI/testing/sysfs-driver-ufs Description: This file shows the thin provisioning · line 713
Quoted 1 line
Documentation/ABI/testing/sysfs-driver-ufs +1
-0+What:
/sys/class/scsi_device/*/device/unit_descriptor/physical_memory_resource_countDocumentation/ABI/testing/sysfs-driver-ufs Description: This file shows the thin provisioning type. This is one of · line 715
Quoted 1 line
Documentation/ABI/testing/sysfs-driver-ufs +0
-0Date: February 2018As you are changing the name of a sysfs file that has been in the kernel for a very long time, what userspace code is now going to break that was using the old name?
AFAIK none.
Thanks,
Avri
Quoted 4 lines
thanks,
greg k-h
Quoted 24 lines · Avri Altman
Quoted 24 lines · Bart Van Assche
Documentation/ABI/testing/sysfs-driver-ufs Description: This file shows the thin provisioning
Quoted 15 lines
Change "resourse" into "resource" in the name of a sysfs attribute.
Fixes d829fc8a1058 ("scsi: ufs: sysfs: unit descriptor")Signed-off-by Bart Van Assche <[email protected]>--- Documentation/ABI/testing/sysfs-driver-ufs | 2 +- drivers/ufs/core/ufs-sysfs.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)Documentation/ABI/testing/sysfs-driver-ufs +0
-0@@ -711,7 +711,7 @@ Description: This file shows the thin provisioningtype. This is one of
Documentation/ABI/testing/sysfs-driver-ufs Description: This file shows the thin provisioning type. This is one of
Quoted 4 lines
Documentation/ABI/testing/sysfs-driver-ufs +0
-1The file is read only. -What:
/sys/class/scsi_device/*/device/unit_descriptor/physical_memory_resourse_countQuoted 1 line
Documentation/ABI/testing/sysfs-driver-ufs +1
-0+What:
Quoted 8 lines
Quoted 7 lines
/sys/class/scsi_device/*/device/unit_descriptor/physical_memory_resource_countDocumentation/ABI/testing/sysfs-driver-ufs Description: This file shows the thin provisioning type. This is one of · line 715
Quoted 1 line
Documentation/ABI/testing/sysfs-driver-ufs +0
-0Date: February 2018As you are changing the name of a sysfs file that has been in the kernel for a very long time, what userspace code is now going to break that was using the old name?
AFAIK none.
So if no tool needs / uses this, why not just delete the attribute entirely as obviously it's not necessary :)
Quoted 7 lines
Quoted 4 lines
Quoted 3 lines
As you are changing the name of a sysfs file that has been in the kernel for a very long time, what userspace code is now going to break that was using the old name?
AFAIK none.
So if no tool needs / uses this, why not just delete the attribute entirely as obviously it's not necessary :)
We can still read it manually should we need to.
We do that from time to time.
Thanks,
Avri