Lines Matching refs:failed
495 static void swap_write_end(struct swap_iocb *sio, bool failed) in swap_write_end() argument
502 if (failed) { in swap_write_end()
514 bool failed = ret != sio->len; in swap_fs_write_complete() local
516 if (failed) { in swap_fs_write_complete()
529 swap_write_end(sio, failed); in swap_fs_write_complete()
535 bool failed = !!bio->bi_status; in end_swap_bio_write() local
537 if (failed) in end_swap_bio_write()
542 swap_write_end(sio, failed); in end_swap_bio_write()
545 static void swap_read_end(struct swap_iocb *sio, bool failed) in swap_read_end() argument
552 if (!failed) { in swap_read_end()
561 if (!failed) in swap_read_end()
570 bool failed = ret != sio->len; in swap_fs_read_complete() local
572 if (failed) in swap_fs_read_complete()
574 swap_read_end(sio, failed); in swap_fs_read_complete()
580 bool failed = !!bio->bi_status; in swap_bio_read_end_io() local
582 if (failed) in swap_bio_read_end_io()
587 swap_read_end(sio, failed); in swap_bio_read_end_io()