Lines Matching full:front

17 #define HIT_PENDING		0x01	/* A front op was still pending */
21 #define NEED_RETRY 0x10 /* A front op requests retrying */
377 struct netfs_io_subrequest *front, *remove; in netfs_collect_write_results() local
398 /* Remove completed subrequests from the front of the streams and in netfs_collect_write_results()
409 front = stream->front; in netfs_collect_write_results()
410 while (front) { in netfs_collect_write_results()
411 trace_netfs_collect_sreq(wreq, front); in netfs_collect_write_results()
413 // front->debug_index, front->start, front->transferred, front->len); in netfs_collect_write_results()
415 if (stream->collected_to < front->start) { in netfs_collect_write_results()
417 stream->collected_to = front->start; in netfs_collect_write_results()
420 /* Stall if the front is still undergoing I/O. */ in netfs_collect_write_results()
421 if (test_bit(NETFS_SREQ_IN_PROGRESS, &front->flags)) { in netfs_collect_write_results()
428 stream->collected_to = front->start + front->len; in netfs_collect_write_results()
432 if (front->start + front->transferred > stream->collected_to) { in netfs_collect_write_results()
433 stream->collected_to = front->start + front->transferred; in netfs_collect_write_results()
437 if (test_bit(NETFS_SREQ_FAILED, &front->flags)) { in netfs_collect_write_results()
439 stream->error = front->error; in netfs_collect_write_results()
441 mapping_set_error(wreq->mapping, front->error); in netfs_collect_write_results()
445 if (front->transferred < front->len) { in netfs_collect_write_results()
455 remove = front; in netfs_collect_write_results()
456 list_del_init(&front->rreq_link); in netfs_collect_write_results()
457 front = list_first_entry_or_null(&stream->subrequests, in netfs_collect_write_results()
459 stream->front = front; in netfs_collect_write_results()
470 if (!front && issued_to > stream->collected_to) { in netfs_collect_write_results()