zfs+sendfile: advance uio_offset upon reading as well

Picked from analogous code in tmpfs.

MFC after:	1 week
This commit is contained in:
Andriy Gapon 2010-09-17 07:20:20 +00:00
parent 44532bc5cd
commit 921d3fd122

View File

@ -523,8 +523,10 @@ again:
if (error == 0)
vm_page_set_valid(m, off, bytes);
vm_page_wakeup(m);
if (error == 0)
if (error == 0) {
uio->uio_resid -= bytes;
uio->uio_offset += bytes;
}
} else {
dirbytes += bytes;
}