zfs+sendfile: advance uio_offset upon reading as well
Picked from analogous code in tmpfs. MFC after: 1 week
This commit is contained in:
parent
44532bc5cd
commit
921d3fd122
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user