Lines Matching defs:failed
501 static void swap_write_end(struct swap_iocb *sio, bool failed)
508 if (failed) {
520 bool failed = ret != sio->len;
522 if (failed) {
535 swap_write_end(sio, failed);
541 bool failed = !!bio->bi_status;
543 if (failed)
548 swap_write_end(sio, failed);
551 static void swap_read_end(struct swap_iocb *sio, bool failed)
558 if (!failed) {
567 if (!failed)
576 bool failed = ret != sio->len;
578 if (failed)
580 swap_read_end(sio, failed);
586 bool failed = !!bio->bi_status;
588 if (failed)
593 swap_read_end(sio, failed);