/linux/fs/btrfs/ |
H A D | bio.c | 122 bbio->bio.bi_status = status; in btrfs_bio_end_io() 140 bbio->bio.bi_status = READ_ONCE(bbio->status); in btrfs_bio_end_io() 162 btrfs_bio_end_io(fbio->bbio, fbio->bbio->bio.bi_status); in btrfs_repair_done() 182 if (repair_bbio->bio.bi_status || in btrfs_end_repair_bio() 190 fbio->bbio->bio.bi_status = BLK_STS_IOERR; in btrfs_end_repair_bio() 238 failed_bbio->bio.bi_status = BLK_STS_IOERR; in repair_one_sector() 273 blk_status_t status = bbio->bio.bi_status; in btrfs_check_read_bio() 290 bbio->bio.bi_status = BLK_STS_OK; in btrfs_check_read_bio() 309 btrfs_bio_end_io(bbio, bbio->bio.bi_status); in btrfs_check_read_bio() 316 if (bio->bi_status != BLK_STS_IOERR && bio->bi_status != BLK_STS_TARGET) in btrfs_log_dev_io_error() [all …]
|
H A D | direct-io.c | 651 if (bio->bi_status) { in btrfs_dio_end_io() 655 dip->file_offset, dip->bytes, bio->bi_status); in btrfs_dio_end_io() 661 !bio->bi_status); in btrfs_dio_end_io() 742 bio->bi_status = errno_to_blk_status(ret); in btrfs_dio_submit_io()
|
/linux/block/ |
H A D | fops.c | 93 if (unlikely(bio.bi_status)) in __blkdev_direct_IO_simple() 94 ret = blk_status_to_errno(bio.bi_status); in __blkdev_direct_IO_simple() 128 if (bio->bi_status && !dio->bio.bi_status) in blkdev_bio_end_io() 129 dio->bio.bi_status = bio->bi_status; in blkdev_bio_end_io() 138 if (likely(!dio->bio.bi_status)) { in blkdev_bio_end_io() 142 ret = blk_status_to_errno(dio->bio.bi_status); in blkdev_bio_end_io() 210 bio->bi_status = BLK_STS_IOERR; in __blkdev_direct_IO() 266 ret = blk_status_to_errno(dio->bio.bi_status); in __blkdev_direct_IO() 282 if (likely(!bio->bi_status)) { in blkdev_bio_end_io_async() 286 ret = blk_status_to_errno(bio->bi_status); in blkdev_bio_end_io_async()
|
H A D | bounce.c | 121 bio_orig->bi_status = bio->bi_status; in bounce_end_io() 135 if (!bio->bi_status) in bounce_end_io_read()
|
H A D | blk-crypto.c | 280 bio->bi_status = BLK_STS_IOERR; in __blk_crypto_bio_prep() 285 bio->bi_status = BLK_STS_IOERR; in __blk_crypto_bio_prep()
|
H A D | blk-crypto-internal.h | 228 (*bio_ptr)->bi_status = BLK_STS_NOTSUPP; in blk_crypto_fallback_bio_prep()
|
H A D | bio-integrity.c | 452 bio->bi_status = BLK_STS_RESOURCE; in bio_integrity_prep() 495 if (bio_op(bio) == REQ_OP_READ && !bio->bi_status && bi->csum_type) { in __bio_integrity_endio()
|
/linux/drivers/md/bcache/ |
H A D | movinggc.c | 68 if (bio->bi_status) in read_moving_endio() 69 io->op.status = bio->bi_status; in read_moving_endio() 75 bch_bbio_endio(io->op.c, bio, bio->bi_status, "reading data to move"); in read_moving_endio()
|
/linux/fs/bcachefs/ |
H A D | io_read.c | 411 rbio->bio.bi_status = 0; in bch2_read_retry_nodecode() 444 rbio->bio.bi_status = BLK_STS_IOERR; in bch2_read_retry_nodecode() 466 rbio->bio.bi_status = 0; in bch2_rbio_retry() 494 rbio->bio.bi_status = error; in bch2_rbio_error() 718 if (bio->bi_status) { in bch2_read_endio() 724 bch2_blk_status_to_str(bio->bi_status)); in bch2_read_endio() 727 bch2_rbio_error(rbio, READ_RETRY_AVOID, bio->bi_status); in bch2_read_endio() 1130 orig->bio.bi_status = BLK_STS_IOERR; in __bch2_read_extent() 1239 rbio->bio.bi_status = BLK_STS_IOERR; in __bch2_read()
|
H A D | fs-io-direct.c | 50 if (bio->bi_status) in bch2_direct_IO_read_endio() 51 dio->ret = blk_status_to_errno(bio->bi_status); in bch2_direct_IO_read_endio() 147 bio->bi_status = BLK_STS_RESOURCE; in bch2_direct_IO_read()
|
H A D | btree_io.c | 1304 bio->bi_status = BLK_STS_REMOVED; in btree_node_read_work() 1309 bch2_dev_io_err_on(ca && bio->bi_status, ca, BCH_MEMBER_ERROR_read, in btree_node_read_work() 1311 bch2_blk_status_to_str(bio->bi_status), buf.buf); in btree_node_read_work() 1322 if (!bio->bi_status && in btree_node_read_work() 1567 ra->err[rb->idx] = bio->bi_status; in btree_node_read_all_replicas_endio() 1713 bio->bi_status = BLK_STS_REMOVED; in bch2_btree_node_read() 1906 bch2_dev_io_err_on(bio->bi_status, ca, BCH_MEMBER_ERROR_write, in btree_node_write_endio() 1908 bch2_blk_status_to_str(bio->bi_status)) || in btree_node_write_endio()
|
/linux/drivers/target/ |
H A D | target_core_iblock.c | 344 blk_status_t blk_status = bio->bi_status; in iblock_bio_done() 346 if (bio->bi_status) { in iblock_bio_done() 347 pr_err("bio error: %p, err: %d\n", bio, bio->bi_status); in iblock_bio_done() 402 if (bio->bi_status) in iblock_end_io_flush() 403 pr_err("IBLOCK: cache flush failed: %d\n", bio->bi_status); in iblock_end_io_flush() 406 if (bio->bi_status) in iblock_end_io_flush()
|
/linux/drivers/md/ |
H A D | raid1.c | 303 bio->bi_status = BLK_STS_IOERR; in call_bio_endio() 364 int uptodate = !bio->bi_status; in raid1_end_read_request() 458 discard_error = bio->bi_status && bio_op(bio) == REQ_OP_DISCARD; in raid1_end_write_request() 463 if (bio->bi_status && !discard_error) { in raid1_end_write_request() 1422 bio->bi_status = errno_to_blk_status(error); in raid1_read_request() 1707 bio->bi_status = errno_to_blk_status(error); in raid1_write_request() 2066 if (!bio->bi_status) in end_sync_read() 2105 int uptodate = !bio->bi_status; in end_sync_write() 2273 bio->bi_status = 0; in fix_sync_read_error() 2301 status = b->bi_status; in process_checks() [all …]
|
H A D | dm-zoned-target.c | 80 if (status != BLK_STS_OK && bio->bi_status == BLK_STS_OK) in dmz_bio_endio() 81 bio->bi_status = status; in dmz_bio_endio() 82 if (bioctx->dev && bio->bi_status != BLK_STS_OK) in dmz_bio_endio() 89 if (bio->bi_status != BLK_STS_OK && in dmz_bio_endio() 106 blk_status_t status = clone->bi_status; in dmz_clone_endio()
|
H A D | raid10.c | 325 bio->bi_status = BLK_STS_IOERR; in raid_end_bio_io() 377 int uptodate = !bio->bi_status; in raid10_end_read_request() 464 discard_error = bio->bi_status && bio_op(bio) == REQ_OP_DISCARD; in raid10_end_write_request() 478 if (bio->bi_status && !discard_error) { in raid10_end_write_request() 1246 bio->bi_status = errno_to_blk_status(error); in raid10_read_request() 1549 bio->bi_status = errno_to_blk_status(error); in raid10_write_request() 1694 bio->bi_status = errno_to_blk_status(PTR_ERR(split)); in raid10_handle_discard() 1709 bio->bi_status = errno_to_blk_status(PTR_ERR(split)); in raid10_handle_discard() 2248 if (!bio->bi_status) in __end_sync_read() 2330 if (bio->bi_status) { in end_sync_write() [all …]
|
H A D | dm-integrity.c | 318 blk_status_t bi_status; member 1574 if (unlikely(r) && !bio->bi_status) in do_endio() 1575 bio->bi_status = errno_to_blk_status(r); in do_endio() 1592 if (unlikely(dio->fua) && likely(!bio->bi_status) && likely(!dm_integrity_failed(ic))) in do_endio_flush() 1610 if (unlikely(dio->bi_status) && !bio->bi_status) in dec_in_flight() 1611 bio->bi_status = dio->bi_status; in dec_in_flight() 1612 if (likely(!bio->bi_status) && unlikely(bio_sectors(bio) != dio->range.n_sectors)) { in dec_in_flight() 1736 dio->bi_status = errno_to_blk_status(r); in integrity_recheck() 1752 dio->bi_status = errno_to_blk_status(r); in integrity_recheck() 1908 dio->bi_status = errno_to_blk_status(r); in integrity_metadata() [all …]
|
H A D | dm-io.c | 148 if (bio->bi_status && bio_data_dir(bio) == READ) in endio() 156 error = bio->bi_status; in endio()
|
H A D | raid1-10.c | 107 bio->bi_status = BLK_STS_RESOURCE; in md_bio_reset_resync_pages()
|
H A D | dm-raid1.c | 495 bio->bi_status = BLK_STS_DM_REQUEUE; in hold_bio() 497 bio->bi_status = BLK_STS_IOERR; in hold_bio() 631 bio->bi_status = BLK_STS_NOTSUPP; in write_callback() 1298 bio->bi_status = 0; in mirror_end_io()
|
/linux/fs/ext4/ |
H A D | readpage.c | 74 folio_end_read(fi.folio, bio->bi_status == 0); in __read_end_io() 147 return bio->bi_private && !bio->bi_status; in bio_post_read_required()
|
/linux/fs/gfs2/ |
H A D | lops.c | 209 if (bio->bi_status) { in gfs2_end_log_write() 210 if (!cmpxchg(&sdp->sd_log_error, 0, (int)bio->bi_status)) in gfs2_end_log_write() 212 bio->bi_status, sdp->sd_jdesc->jd_jid); in gfs2_end_log_write() 222 gfs2_end_log_write_bh(sdp, bvec, bio->bi_status); in gfs2_end_log_write() 396 int error = blk_status_to_errno(bio->bi_status); in gfs2_end_log_read()
|
/linux/drivers/block/drbd/ |
H A D | drbd_worker.c | 55 device->md_io.error = blk_status_to_errno(bio->bi_status); in drbd_md_endio() 179 if (bio->bi_status && drbd_ratelimit()) in drbd_peer_request_endio() 182 : "read", bio->bi_status, in drbd_peer_request_endio() 185 if (bio->bi_status) in drbd_peer_request_endio() 246 if (!bio->bi_status) in drbd_request_endio() 251 if (unlikely(bio->bi_status)) { in drbd_request_endio() 255 if (bio->bi_status == BLK_STS_NOTSUPP) in drbd_request_endio() 274 req->private_bio = ERR_PTR(blk_status_to_errno(bio->bi_status)); in drbd_request_endio()
|
/linux/fs/crypto/ |
H A D | bio.c | 40 bio->bi_status = errno_to_blk_status(err); in fscrypt_decrypt_bio()
|
/linux/drivers/md/dm-vdo/ |
H A D | vio.h | 177 continue_vio(vio, blk_status_to_errno(vio->bio->bi_status)); in continue_vio_after_io()
|
/linux/drivers/block/ |
H A D | pktcdvd.c | 978 bio, pkt->sector, bio->bi_iter.bi_sector, bio->bi_status); in pkt_end_io_read() 980 if (bio->bi_status) in pkt_end_io_read() 996 dev_dbg(disk_to_dev(pd->disk), "id=%d, err=%d\n", pkt->id, bio->bi_status); in pkt_end_io_packet_write() 1317 bio->bi_status = status; in pkt_finish_packet() 1354 if (!pkt->w_bio->bi_status) { in pkt_run_state_machine() 1367 pkt_finish_packet(pkt, pkt->w_bio->bi_status); in pkt_run_state_machine() 2315 psd->bio->bi_status = bio->bi_status; in pkt_end_io_read_cloned()
|