mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 10:01:01 +03:00
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:
parent
34d00e7aba
commit
18a2485fc8
@ -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);
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user