Skip to content

Commit

Permalink
elevator: update the document of elevator_match
Browse files Browse the repository at this point in the history
elevator_match does not care about elevator_features any more. Remove
related descriptions from its document.

Fixes: ffb8642 ("block: don't check for required features in elevator_match")
Signed-off-by: Jinlong Chen <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Link: https://lore.kernel.org/r/a58424555202c07a9ccf7f60c3ad7e247da09e25.1669126766.git.nickyc975@zju.edu.cn
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
nickyc975 authored and axboe committed Nov 23, 2022
1 parent e0cca8b commit f69b5e8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions block/elevator.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,11 @@ static inline bool elv_support_features(struct request_queue *q,
}

/**
* elevator_match - Test an elevator name and features
* elevator_match - Check whether @e's name or alias matches @name
* @e: Scheduler to test
* @name: Elevator name to test
*
* Return true if the elevator @e name matches @name and if @e provides all
* the features specified by @required_features.
* Return true if the elevator @e's name or alias matches @name.
*/
static bool elevator_match(const struct elevator_type *e, const char *name)
{
Expand Down

0 comments on commit f69b5e8

Please sign in to comment.