diff options
author | Tomohiro Kusumi <[email protected]> | 2019-04-26 02:17:28 +0900 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-04-25 10:17:27 -0700 |
commit | 126d0fa7333c0d6d6159900d2858c82fa964b4f9 (patch) | |
tree | 8407df8d58c14767a406157defa137f8029ddb77 /module/zfs/vdev_file.c | |
parent | f4c594da94d856c422512a54e48070f890b2685b (diff) |
Use SEEK_{SET,CUR,END} for file seek "whence"
Use either SEEK_* or 0,1,2..., but not both.
Reviewed-by: George Melikov <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Tomohiro Kusumi <[email protected]>
Closes #8656
Diffstat (limited to 'module/zfs/vdev_file.c')
-rw-r--r-- | module/zfs/vdev_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/vdev_file.c b/module/zfs/vdev_file.c index c04f40ca4..c15505785 100644 --- a/module/zfs/vdev_file.c +++ b/module/zfs/vdev_file.c @@ -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); |