]> git.karo-electronics.de Git - linux-beck.git/commitdiff
block: Make wbt_wait() definition consistent with declaration
authorBart Van Assche <Bart.VanAssche@sandisk.com>
Mon, 2 Jan 2017 16:46:15 +0000 (09:46 -0700)
committerJens Axboe <axboe@fb.com>
Mon, 2 Jan 2017 16:46:15 +0000 (09:46 -0700)
Fixes: e34cbd307477 ("blk-wbt: add general throttling mechanism")
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-wbt.c

index 6e82769f4042c2f57af7976b1b7b4342eea1306d..fd28c28064063c56a852c10a62bec4c5acd5be46 100644 (file)
@@ -595,7 +595,7 @@ static inline bool wbt_should_throttle(struct rq_wb *rwb, struct bio *bio)
  * in an irq held spinlock, if it holds one when calling this function.
  * If we do sleep, we'll release and re-grab it.
  */
-unsigned int wbt_wait(struct rq_wb *rwb, struct bio *bio, spinlock_t *lock)
+enum wbt_flags wbt_wait(struct rq_wb *rwb, struct bio *bio, spinlock_t *lock)
 {
        unsigned int ret = 0;