Skip to content

Commit

Permalink
misc: fix meaningless values
Browse files Browse the repository at this point in the history
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
  • Loading branch information
loyou authored and behlendorf committed Sep 19, 2017
1 parent 34d00e7 commit 18a2485
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion module/zfs/zfs_znode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion module/zfs/zpl_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ zpl_mmap(struct file *filp, struct vm_area_struct *vma)
return (error);

mutex_enter(&zp->z_lock);
zp->z_is_mapped = 1;
zp->z_is_mapped = B_TRUE;
mutex_exit(&zp->z_lock);

return (error);
Expand Down

0 comments on commit 18a2485

Please sign in to comment.