projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a3b366
)
block: replace "len+name" with "name+len" in elv_iosched_show
author
Jinlong Chen
<nickyc975@zju.edu.cn>
Tue, 29 Nov 2022 15:46:37 +0000
(23:46 +0800)
committer
Jens Axboe
<axboe@kernel.dk>
Tue, 29 Nov 2022 17:53:10 +0000
(10:53 -0700)
The "pointer + offset" pattern is more resonable.
Signed-off-by: Jinlong Chen <nickyc975@zju.edu.cn>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link:
https://lore.kernel.org/r/d9beaee71b14f7b2a39ab0db6458dc0f7d961ceb.1669736350.git.nickyc975@zju.edu.cn
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/elevator.c
patch
|
blob
|
history
diff --git
a/block/elevator.c
b/block/elevator.c
index
b2f2252
..
8a5c171
100644
(file)
--- a/
block/elevator.c
+++ b/
block/elevator.c
@@
-783,7
+783,7
@@
ssize_t elv_iosched_show(struct request_queue *q, char *name)
}
spin_unlock(&elv_list_lock);
- len += sprintf(
len+name
, "\n");
+ len += sprintf(
name+len
, "\n");
return len;
}