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
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);
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);