summaryrefslogtreecommitdiff
path: root/drivers/md/bcache/request.c
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2018-05-15 10:41:01 +0200
committerWolfram Sang <wsa@the-dreams.de>2018-05-15 10:41:01 +0200
commite6218bf390a9992de86a535bcb227f75e2c20cf9 (patch)
treeb6bfa2374c78fedacb683b4da91afac3300807ba /drivers/md/bcache/request.c
parent77bade677c3c5616dfadfd21f0220fcddbfa4cbe (diff)
parent35cd67a0caf767aba472452865dcb4471fcce2b1 (diff)
Merge branch 'i2c/for-current-fixed' into i2c/for-4.18
Diffstat (limited to 'drivers/md/bcache/request.c')
-rw-r--r--drivers/md/bcache/request.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/md/bcache/request.c b/drivers/md/bcache/request.c
index a65e3365eeb9..8e3e8655ed63 100644
--- a/drivers/md/bcache/request.c
+++ b/drivers/md/bcache/request.c
@@ -649,11 +649,8 @@ static void backing_request_endio(struct bio *bio)
*/
if (unlikely(s->iop.writeback &&
bio->bi_opf & REQ_PREFLUSH)) {
- char buf[BDEVNAME_SIZE];
-
- bio_devname(bio, buf);
pr_err("Can't flush %s: returned bi_status %i",
- buf, bio->bi_status);
+ dc->backing_dev_name, bio->bi_status);
} else {
/* set to orig_bio->bi_status in bio_complete() */
s->iop.status = bio->bi_status;