Commit 4372b607 authored by Jens Axboe's avatar Jens Axboe Committed by Jens Axboe

[PATCH] blk_fs_request()

Add blk_fs_request(rq) to avoid testing rq->flags & REQ_CMD directly.
parent e47901f9
...@@ -219,6 +219,7 @@ struct request_queue ...@@ -219,6 +219,7 @@ struct request_queue
#define blk_queue_plugged(q) !list_empty(&(q)->plug_list) #define blk_queue_plugged(q) !list_empty(&(q)->plug_list)
#define blk_queue_tagged(q) test_bit(QUEUE_FLAG_QUEUED, &(q)->queue_flags) #define blk_queue_tagged(q) test_bit(QUEUE_FLAG_QUEUED, &(q)->queue_flags)
#define blk_queue_empty(q) elv_queue_empty(q) #define blk_queue_empty(q) elv_queue_empty(q)
#define blk_fs_request(rq) ((rq)->flags & REQ_CMD)
#define list_entry_rq(ptr) list_entry((ptr), struct request, queuelist) #define list_entry_rq(ptr) list_entry((ptr), struct request, queuelist)
#define rq_data_dir(rq) ((rq)->flags & 1) #define rq_data_dir(rq) ((rq)->flags & 1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment