Illumos 6288 dmu_buf_will_dirty could be faster #3987
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Illumos 6288 dmu_buf_will_dirty could be faster
Reviewed by: George Wilson george.wilson@delphix.com
Reviewed by: Paul Dagnelie pcd@delphix.com
Reviewed by: Justin Gibbs gibbs@scsiguy.com
Reviewed by: Richard Elling Richard.Elling@RichardElling.com
Approved by: Robert Mustacchi rm@joyent.com
References:
https://www.illumos.org/issues/6288 dmu_buf_will_dirty could be faster
illumos/illumos-gate@0f2e7d0
Porting notes:
account for 'warning: ISO C90 forbids mixed declarations and code'
and move
dbuf_dirty_record_t *dr;
to the beginning of the block of code
@dmu_buf_will_dirty(dmu_buf_t *db_fake, dmu_tx_t *tx)
.
Ported-by: kernelOfTruth kerneloftruth@gmail.com