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/zpl_inode.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/zpl_inode.c')
-rw-r--r-- | module/zfs/zpl_inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/zpl_inode.c b/module/zfs/zpl_inode.c index 41b91cabc..720330a8b 100644 --- a/module/zfs/zpl_inode.c +++ b/module/zfs/zpl_inode.c @@ -636,7 +636,7 @@ zpl_truncate_range(struct inode *ip, loff_t start, loff_t end) crhold(cr); bf.l_type = F_WRLCK; - bf.l_whence = 0; + bf.l_whence = SEEK_SET; bf.l_start = start; bf.l_len = end - start; bf.l_pid = 0; |