diff options
author | Feng Sun <[email protected]> | 2017-09-20 03:19:08 +0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2017-09-19 12:19:08 -0700 |
commit | 18a2485fc8061f7393ca19f7291366bc46fe9bf7 (patch) | |
tree | 3ce3535c405e63ffbaa0bf5e7d65b6f200bbe609 /module/zfs/zfs_znode.c | |
parent | 34d00e7aba13076e47dbd1791bd955c1e2f7b0c9 (diff) |
misc: fix meaningless values
Reviewed-by: George Melikov <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Tim Chase <[email protected]>
Signed-off-by: Feng Sun <[email protected]>
Closes #6658
Diffstat (limited to 'module/zfs/zfs_znode.c')
-rw-r--r-- | module/zfs/zfs_znode.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/module/zfs/zfs_znode.c b/module/zfs/zfs_znode.c index e4115fef0..3caf1bdc1 100644 --- a/module/zfs/zfs_znode.c +++ b/module/zfs/zfs_znode.c @@ -1637,7 +1637,8 @@ zfs_trunc(znode_t *zp, uint64_t end) return (0); } - error = dmu_free_long_range(zfsvfs->z_os, zp->z_id, end, -1); + error = dmu_free_long_range(zfsvfs->z_os, zp->z_id, end, + DMU_OBJECT_END); if (error) { zfs_range_unlock(rl); return (error); |