diff options
author | Jens Axboe <axboe@suse.de> | 2006-08-10 03:01:02 -0400 |
---|---|---|
committer | Jens Axboe <axboe@nelson.home.kernel.dk> | 2006-09-30 14:29:42 -0400 |
commit | 5404bc7a87b9949cf61e0174b21f80e73239ab25 (patch) | |
tree | 230c799aef2dcad8c64da55114508d28d2b30183 /block/ll_rw_blk.c | |
parent | da20a20f3b5c175648fa797c899dd577e4dacb51 (diff) |
[PATCH] Allow file systems to differentiate between data and meta reads
We can use this information for making more intelligent priority
decisions, and it will also be useful for blktrace.
Signed-off-by: Jens Axboe <axboe@suse.de>
Diffstat (limited to 'block/ll_rw_blk.c')
-rw-r--r-- | block/ll_rw_blk.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/block/ll_rw_blk.c b/block/ll_rw_blk.c index e3980ec747c..57992ae511c 100644 --- a/block/ll_rw_blk.c +++ b/block/ll_rw_blk.c | |||
@@ -2884,6 +2884,8 @@ static void init_request_from_bio(struct request *req, struct bio *bio) | |||
2884 | 2884 | ||
2885 | if (bio_sync(bio)) | 2885 | if (bio_sync(bio)) |
2886 | req->cmd_flags |= REQ_RW_SYNC; | 2886 | req->cmd_flags |= REQ_RW_SYNC; |
2887 | if (bio_rw_meta(bio)) | ||
2888 | req->cmd_flags |= REQ_RW_META; | ||
2887 | 2889 | ||
2888 | req->errors = 0; | 2890 | req->errors = 0; |
2889 | req->hard_sector = req->sector = bio->bi_sector; | 2891 | req->hard_sector = req->sector = bio->bi_sector; |