Skip to content

random improvements and cleanups for elevator.c

Jinlong Chen linux-block lkml 2 versions – Applied

Status from this message: Applied, with some commit message re-formatting. Please keep lines

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 2 repliesApplied
  2. v14 patches 5 repliesSuperseded

Changes in v2 from the cover letter

- add patch 3 to further improve the readability (suggested by Christoph)
- add Reviewed-by tags from Christoph

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/5elevator: print none at first in elv_iosched_show even if the queue has a schedulerblock/elevator.c+4 -50 replies
2/5elevator: replace continue with else-if in elv_iosched_showblock/elevator.c+2 -40 replies
3/5elevator: print e->elevator_name instead of cur->elevator_name in elv_iosched_showblock/elevator.c+1 -10 replies
4/5elevator: repalce "len+name" with "name+len" in elv_iosched_showblock/elevator.c+1 -10 replies
5/5elevator: use bool instead of int as the return type of elv_iosched_allow_bio_mergeblock/elevator.c+2 -20 replies

Reviews trailers per patch

3 of 5 patches have a Reviewed-by or Acked-by.

PatchChristoph Hellwig
1/5R-b
2/5
3/5
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/5] random improvements and cleanups for elevator.c

The series slightly improves the readability of elevator.c.

Changes in v2:
- add patch 3 to further improve the readability (suggested by Christoph)
- add Reviewed-by tags from Christoph

Jinlong Chen (5):
elevator: print none at first in elv_iosched_show even if the queue
has a scheduler
elevator: replace continue with else-if in elv_iosched_show
elevator: print e->elevator_name instead of cur->elevator_name in
elv_iosched_show
elevator: repalce "len+name" with "name+len" in elv_iosched_show
elevator: use bool instead of int as the return type of
elv_iosched_allow_bio_merge

 block/elevator.c | 23 ++++++++++-------------
 1 file changed, 10 insertions(+), 13 deletions(-)
Signature · 1 line
2.34.1