Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZAP: Some cleanups/micro-optimizations #15976

Merged
merged 1 commit into from
Mar 21, 2024
Merged

Conversation

amotin
Copy link
Member

@amotin amotin commented Mar 8, 2024

  • Remove custom zap_memset(), use regular memset().
  • Use PANIC() instead of opaque cmn_err(CE_PANIC).
  • Provide entry parameter to zap_leaf_rehash_entry().
  • Reduce branching in zap_leaf_array_create() inner loop.
  • Remove signedness where it should not be.

Should be no function changes.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance enhancement (non-breaking change which improves efficiency)
  • Code cleanup (non-breaking change which makes code smaller or more readable)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Library ABI change (libzfs, libzfs_core, libnvpair, libuutil and libzfsbootenv)
  • Documentation (a change to man pages or other documentation)

Checklist:

@amotin amotin added the Status: Code Review Needed Ready for review and testing label Mar 8, 2024
@amotin amotin force-pushed the zap_microopt branch 2 times, most recently from d78315b to 137a176 Compare March 8, 2024 20:39
 - Remove custom zap_memset(), use regular memset().
 - Use PANIC() instead of opaque cmn_err(CE_PANIC).
 - Provide entry parameter to zap_leaf_rehash_entry().
 - Reduce branching in zap_leaf_array_create() inner loop.
 - Remove signedness where it should not be.

Should be no function changes.

Signed-off-by:	Alexander Motin <mav@FreeBSD.org>
Sponsored by:	iXsystems, Inc.
@behlendorf behlendorf added Status: Accepted Ready to integrate (reviewed, tested) and removed Status: Code Review Needed Ready for review and testing labels Mar 21, 2024
@behlendorf behlendorf merged commit c28f94f into openzfs:master Mar 21, 2024
25 of 26 checks passed
@amotin amotin deleted the zap_microopt branch March 22, 2024 16:18
amotin added a commit to amotin/zfs that referenced this pull request Apr 17, 2024
- Remove custom zap_memset(), use regular memset().
- Use PANIC() instead of opaque cmn_err(CE_PANIC).
- Provide entry parameter to zap_leaf_rehash_entry().
- Reduce branching in zap_leaf_array_create() inner loop.
- Remove signedness where it should not be.

Should be no function changes.

Reviewed-by: Brian Atkinson <batkinson@lanl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by:	Alexander Motin <mav@FreeBSD.org>
Sponsored by:	iXsystems, Inc.
Closes openzfs#15976
behlendorf pushed a commit that referenced this pull request Apr 19, 2024
- Remove custom zap_memset(), use regular memset().
- Use PANIC() instead of opaque cmn_err(CE_PANIC).
- Provide entry parameter to zap_leaf_rehash_entry().
- Reduce branching in zap_leaf_array_create() inner loop.
- Remove signedness where it should not be.

Should be no function changes.

Reviewed-by: Brian Atkinson <batkinson@lanl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by:	Alexander Motin <mav@FreeBSD.org>
Sponsored by:	iXsystems, Inc.
Closes #15976
lundman pushed a commit to openzfsonwindows/openzfs that referenced this pull request Sep 4, 2024
- Remove custom zap_memset(), use regular memset().
- Use PANIC() instead of opaque cmn_err(CE_PANIC).
- Provide entry parameter to zap_leaf_rehash_entry().
- Reduce branching in zap_leaf_array_create() inner loop.
- Remove signedness where it should not be.

Should be no function changes.

Reviewed-by: Brian Atkinson <batkinson@lanl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by:	Alexander Motin <mav@FreeBSD.org>
Sponsored by:	iXsystems, Inc.
Closes openzfs#15976
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Accepted Ready to integrate (reviewed, tested)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants