|
@@ -173,7 +173,8 @@ deadline_merged_requests(struct request_queue *q, struct request *req,
|
|
|
* and move into next position (next will be deleted) in fifo
|
|
|
*/
|
|
|
if (!list_empty(&req->queuelist) && !list_empty(&next->queuelist)) {
|
|
|
- if (time_before(next->fifo_time, req->fifo_time)) {
|
|
|
+ if (time_before((unsigned long)next->fifo_time,
|
|
|
+ (unsigned long)req->fifo_time)) {
|
|
|
list_move(&req->queuelist, &next->queuelist);
|
|
|
req->fifo_time = next->fifo_time;
|
|
|
}
|
|
@@ -227,7 +228,7 @@ static inline int deadline_check_fifo(struct deadline_data *dd, int ddir)
|
|
|
/*
|
|
|
* rq is expired!
|
|
|
*/
|
|
|
- if (time_after_eq(jiffies, rq->fifo_time))
|
|
|
+ if (time_after_eq(jiffies, (unsigned long)rq->fifo_time))
|
|
|
return 1;
|
|
|
|
|
|
return 0;
|