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/zfs_replay.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/zfs_replay.c')
-rw-r--r-- | module/zfs/zfs_replay.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/zfs_replay.c b/module/zfs/zfs_replay.c index ba103084f..144381769 100644 --- a/module/zfs/zfs_replay.c +++ b/module/zfs/zfs_replay.c @@ -792,7 +792,7 @@ zfs_replay_truncate(void *arg1, void *arg2, boolean_t byteswap) bzero(&fl, sizeof (fl)); fl.l_type = F_WRLCK; - fl.l_whence = 0; + fl.l_whence = SEEK_SET; fl.l_start = lr->lr_offset; fl.l_len = lr->lr_length; |