diff options
author | Christoph Hellwig <hch@lst.de> | 2021-10-20 22:38:10 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-10-20 08:40:54 -0600 |
commit | 0f5cd7815f7f4bb1dd340a9aeb9b9d6a7c7eec22 (patch) | |
tree | 1ccdcb9aa3c0f26a6e74aa22ada14225132b7392 /drivers/md/bcache/request.c | |
parent | 7e84c2150731faec088ebfe33459f61d118b2497 (diff) | |
download | lwn-0f5cd7815f7f4bb1dd340a9aeb9b9d6a7c7eec22.tar.gz lwn-0f5cd7815f7f4bb1dd340a9aeb9b9d6a7c7eec22.zip |
bcache: remove the backing_dev_name field from struct cached_dev
Just use the %pg format specifier to print the name directly.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Coly Li <colyli@suse.de>
Link: https://lore.kernel.org/r/20211020143812.6403-7-colyli@suse.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/bcache/request.c')
-rw-r--r-- | drivers/md/bcache/request.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/bcache/request.c b/drivers/md/bcache/request.c index 23b28edae90f..f86909a66ac6 100644 --- a/drivers/md/bcache/request.c +++ b/drivers/md/bcache/request.c @@ -651,8 +651,8 @@ static void backing_request_endio(struct bio *bio) */ if (unlikely(s->iop.writeback && bio->bi_opf & REQ_PREFLUSH)) { - pr_err("Can't flush %s: returned bi_status %i\n", - dc->backing_dev_name, bio->bi_status); + pr_err("Can't flush %pg: returned bi_status %i\n", + dc->bdev, bio->bi_status); } else { /* set to orig_bio->bi_status in bio_complete() */ s->iop.status = bio->bi_status; |