diff options
author | Jens Axboe <axboe@kernel.dk> | 2018-05-07 11:57:08 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-05-08 17:10:56 -0400 |
commit | 8bea60901974ad44b06b08d52e1dd421ea8c6e9c (patch) | |
tree | afd05bb8580a9e41afef562c639920307ceae486 /block/blk-wbt.h | |
parent | 825843b0adb7c95e8cbab35e6fee64980e29ade8 (diff) |
blk-wbt: pass in enum wbt_flags to get_rq_wait()
This is in preparation for having more write queues, in which
case we would have needed to pass in more information than just
a simple 'is_kswapd' boolean.
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-wbt.h')
-rw-r--r-- | block/blk-wbt.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/block/blk-wbt.h b/block/blk-wbt.h index a232c98fbf4d..8038b4a0d4ef 100644 --- a/block/blk-wbt.h +++ b/block/blk-wbt.h | |||
@@ -19,7 +19,9 @@ enum wbt_flags { | |||
19 | }; | 19 | }; |
20 | 20 | ||
21 | enum { | 21 | enum { |
22 | WBT_NUM_RWQ = 2, | 22 | WBT_RWQ_BG = 0, |
23 | WBT_RWQ_KSWAPD, | ||
24 | WBT_NUM_RWQ, | ||
23 | }; | 25 | }; |
24 | 26 | ||
25 | /* | 27 | /* |