View | Details | Raw Unified | Return to bug 217789
Collapse All | Expand All

(-)sys/kern/kern_sendfile.c (-4 / +3 lines)
Lines 689-699 retry_space: Link Here
689
				goto done;
689
				goto done;
690
			}
690
			}
691
			if (va.va_size != obj_size) {
691
			if (va.va_size != obj_size) {
692
				if (nbytes == 0)
693
					rem += va.va_size - obj_size;
694
				else if (offset + nbytes > va.va_size)
695
					rem -= (offset + nbytes - va.va_size);
696
				obj_size = va.va_size;
692
				obj_size = va.va_size;
693
				rem = nbytes ?
694
				    omin(nbytes + offset, obj_size) : obj_size;
695
				rem -= off;
697
			}
696
			}
698
		}
697
		}
699
698

Return to bug 217789