This check should be done before calling zfs_holey to avoid unnecessary work.