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

Restructure nvlist_nv_alloc to work on FreeBSD #9643

Merged
merged 1 commit into from
Nov 30, 2019

Conversation

mattmacy
Copy link
Contributor

KM_PUSHPAGE is an Illumosism - On FreeBSD it's
aliased to the same malloc flag as KM_SLEEP.
The compiler naturally rejects multiple case
statements with the same value.

Signed-off-by: Matt Macy [email protected]

Motivation and Context

Description

How Has This Been Tested?

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)
  • Documentation (a change to man pages or other documentation)

Checklist:

KM_PUSHPAGE is an Illumosism - On FreeBSD it's
aliased to the same malloc flag as KM_SLEEP.
The compiler naturally rejects multiple case
statements with the same value.

Signed-off-by: Matt Macy <[email protected]>
@behlendorf behlendorf added the Status: Code Review Needed Ready for review and testing label Nov 27, 2019
@behlendorf behlendorf requested a review from lundman November 27, 2019 23:31
Copy link
Contributor

@lundman lundman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Making default be pushpage is probably ok, all places does seem to specify a flag and not just "0".

@behlendorf behlendorf added Status: Accepted Ready to integrate (reviewed, tested) and removed Status: Code Review Needed Ready for review and testing labels Nov 28, 2019
@codecov
Copy link

codecov bot commented Nov 28, 2019

Codecov Report

Merging #9643 into master will decrease coverage by 0.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #9643      +/-   ##
==========================================
- Coverage   79.47%   79.46%   -0.02%     
==========================================
  Files         418      418              
  Lines      123544   123544              
==========================================
- Hits        98183    98170      -13     
- Misses      25361    25374      +13
Flag Coverage Δ
#kernel 80.02% <0%> (ø) ⬆️
#user 67.28% <ø> (+0.14%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d6f67df...7f7332b. Read the comment docs.

@behlendorf behlendorf merged commit 758699b into openzfs:master Nov 30, 2019
@mattmacy mattmacy deleted the projects/nvpair_case branch December 19, 2019 22:26
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