mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-24 03:08:51 +03:00
Use SEEK_{SET,CUR,END} for file seek "whence"
Use either SEEK_* or 0,1,2..., but not both. Reviewed-by: George Melikov <mail@gmelikov.ru> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com> Closes #8656
This commit is contained in:
committed by
Brian Behlendorf
parent
f4c594da94
commit
126d0fa733
@@ -255,7 +255,7 @@ vdev_file_io_start(zio_t *zio)
|
||||
flck.l_type = F_FREESP;
|
||||
flck.l_start = zio->io_offset;
|
||||
flck.l_len = zio->io_size;
|
||||
flck.l_whence = 0;
|
||||
flck.l_whence = SEEK_SET;
|
||||
|
||||
zio->io_error = VOP_SPACE(vf->vf_vnode, F_FREESP, &flck,
|
||||
0, 0, kcred, NULL);
|
||||
|
||||
Reference in New Issue
Block a user