Commit f69b5e8f authored by Jinlong Chen's avatar Jinlong Chen Committed by Jens Axboe

elevator: update the document of elevator_match

elevator_match does not care about elevator_features any more. Remove
related descriptions from its document.

Fixes: ffb86425 ("block: don't check for required features in elevator_match")
Signed-off-by: default avatarJinlong Chen <nickyc975@zju.edu.cn>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/a58424555202c07a9ccf7f60c3ad7e247da09e25.1669126766.git.nickyc975@zju.edu.cnSigned-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent e0cca8bc
...@@ -91,12 +91,11 @@ static inline bool elv_support_features(struct request_queue *q, ...@@ -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 * @e: Scheduler to test
* @name: Elevator name to test * @name: Elevator name to test
* *
* Return true if the elevator @e name matches @name and if @e provides all * Return true if the elevator @e's name or alias matches @name.
* the features specified by @required_features.
*/ */
static bool elevator_match(const struct elevator_type *e, const char *name) static bool elevator_match(const struct elevator_type *e, const char *name)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment