Message ID | 20220919070916.2738443-3-yukuai1@huaweicloud.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | blk-wbt: simple improvment to enable wbt correctly | expand |
diff --git a/block/elevator.h b/block/elevator.h index 3f0593b3bf9d..2ddc738cae97 100644 --- a/block/elevator.h +++ b/block/elevator.h @@ -104,6 +104,11 @@ struct elevator_queue DECLARE_HASHTABLE(hash, ELV_HASH_BITS); }; +static inline bool check_elevator_name(struct elevator_queue *elevator, + const char *name) +{ + return elevator && !strcmp(elevator->type->elevator_name, name); +} /* * block elevator interface */