block: sysfs cleanup for deprecated API usage#711
block: sysfs cleanup for deprecated API usage#711blktests-ci[bot] wants to merge 10 commits intolinus-master_basefrom
Conversation
|
Upstream branch: 9147566 |
ecbdbb4 to
480b162
Compare
|
Upstream branch: 9147566 |
f46115e to
4fec5ee
Compare
a96fba7 to
0cd6ac2
Compare
|
Upstream branch: 9147566 |
4fec5ee to
c95c893
Compare
0cd6ac2 to
910d344
Compare
|
Upstream branch: d8a9a4b |
c95c893 to
b09d41f
Compare
910d344 to
ed862bc
Compare
|
Upstream branch: 7ca6d1c |
b09d41f to
40fe562
Compare
ed862bc to
2d0c3d5
Compare
|
Upstream branch: 3aae938 |
40fe562 to
2a66541
Compare
2d0c3d5 to
931d9b0
Compare
|
Upstream branch: 3036cd0 |
2a66541 to
86c4477
Compare
931d9b0 to
78a4682
Compare
|
Upstream branch: 9a9c8ce |
86c4477 to
7fdddff
Compare
78a4682 to
8f17195
Compare
Use sysfs_emit() instead of sprintf() per the sysfs output guidelines. Signed-off-by: Jackie Liu <[email protected]>
Use sysfs_emit() for nr_tags and nr_reserved_tags, and convert cpus_show to use sysfs_emit_at() which also drops the manual PAGE_SIZE tracking. Signed-off-by: Jackie Liu <[email protected]>
Use sysfs_emit()/sysfs_emit_at() instead of sprintf() for the disk events sysfs attributes. Signed-off-by: Jackie Liu <[email protected]>
Use sysfs_emit() instead of sprintf() for partition attribute show functions. Signed-off-by: Jackie Liu <[email protected]>
Use sysfs_emit() instead of sprintf() for the fail_io timeout sysfs show function. Signed-off-by: Jackie Liu <[email protected]>
Use sysfs_emit() instead of sprintf() in the KYBER_LAT_SHOW_STORE macro for the kyber I/O scheduler latency target show functions. Signed-off-by: Jackie Liu <[email protected]>
Use sysfs_emit() instead of sprintf() in bfq_var_show(), which is the common helper used by all BFQ sysfs show functions. Signed-off-by: Jackie Liu <[email protected]>
…ore() kstrtol() is the preferred way to parse a single integer from sysfs input. It also makes the !count check unnecessary since kstrtol() returns -EINVAL on empty or malformed strings. Signed-off-by: Jackie Liu <[email protected]>
simple_strtoul() is deprecated. Switch to kstrtoint() which also removes the need for the const-discarding cast and the if (count) wrapper. Signed-off-by: Jackie Liu <[email protected]>
|
Upstream branch: 028ef9c |
sscanf() is overly lenient for parsing a single integer from sysfs. Use kstrtoint() which also properly rejects malformed input and makes the count > 0 guard unnecessary. Signed-off-by: Jackie Liu <[email protected]>
7fdddff to
3c42114
Compare
Pull request for series with
subject: block: sysfs cleanup for deprecated API usage
version: 1
url: https://patchwork.kernel.org/project/linux-block/list/?series=1075620