misc: fix meaningless values

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tim Chase <tim@chase2k.com>
Signed-off-by: Feng Sun <loyou85@gmail.com>
Closes #6658
This commit is contained in:
Feng Sun 2017-09-20 03:19:08 +08:00 committed by Brian Behlendorf
parent 34d00e7aba
commit 18a2485fc8
2 changed files with 3 additions and 2 deletions

View File

@ -1637,7 +1637,8 @@ zfs_trunc(znode_t *zp, uint64_t end)
return (0); 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) { if (error) {
zfs_range_unlock(rl); zfs_range_unlock(rl);
return (error); return (error);

View File

@ -527,7 +527,7 @@ zpl_mmap(struct file *filp, struct vm_area_struct *vma)
return (error); return (error);
mutex_enter(&zp->z_lock); mutex_enter(&zp->z_lock);
zp->z_is_mapped = 1; zp->z_is_mapped = B_TRUE;
mutex_exit(&zp->z_lock); mutex_exit(&zp->z_lock);
return (error); return (error);