mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
blktrace: use errno instead of bi_status
[ Upstream commit 48bc3cd3e0 ]
In blk_add_trace_spliti() blk_add_trace_bio_remap() use
blk_status_to_errno() to pass the error instead of pasing the bi_status.
This fixes the sparse warning.
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
fb12a1a210
commit
48adb95b73
|
|
@ -1004,8 +1004,10 @@ static void blk_add_trace_split(void *ignore,
|
|||
|
||||
__blk_add_trace(bt, bio->bi_iter.bi_sector,
|
||||
bio->bi_iter.bi_size, bio_op(bio), bio->bi_opf,
|
||||
BLK_TA_SPLIT, bio->bi_status, sizeof(rpdu),
|
||||
&rpdu, blk_trace_bio_get_cgid(q, bio));
|
||||
BLK_TA_SPLIT,
|
||||
blk_status_to_errno(bio->bi_status),
|
||||
sizeof(rpdu), &rpdu,
|
||||
blk_trace_bio_get_cgid(q, bio));
|
||||
}
|
||||
rcu_read_unlock();
|
||||
}
|
||||
|
|
@ -1042,7 +1044,8 @@ static void blk_add_trace_bio_remap(void *ignore,
|
|||
r.sector_from = cpu_to_be64(from);
|
||||
|
||||
__blk_add_trace(bt, bio->bi_iter.bi_sector, bio->bi_iter.bi_size,
|
||||
bio_op(bio), bio->bi_opf, BLK_TA_REMAP, bio->bi_status,
|
||||
bio_op(bio), bio->bi_opf, BLK_TA_REMAP,
|
||||
blk_status_to_errno(bio->bi_status),
|
||||
sizeof(r), &r, blk_trace_bio_get_cgid(q, bio));
|
||||
rcu_read_unlock();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user