Merge pull request #21728 from Werkov/bfq-io-weight

bfq.io.weight followups and cleanup
This commit is contained in:
Yu Watanabe
2022-01-12 22:22:43 +09:00
committed by GitHub
3 changed files with 45 additions and 28 deletions
+9
View File
@@ -426,4 +426,13 @@ TEST(cg_get_keyed_attribute) {
}
}
TEST(bfq_weight_conversion) {
assert_se(BFQ_WEIGHT(1) == 1);
assert_se(BFQ_WEIGHT(50) == 50);
assert_se(BFQ_WEIGHT(100) == 100);
assert_se(BFQ_WEIGHT(500) == 136);
assert_se(BFQ_WEIGHT(5000) == 545);
assert_se(BFQ_WEIGHT(10000) == 1000);
}
DEFINE_TEST_MAIN(LOG_DEBUG);