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

Linux does not HAVE_DNLC #8031

Merged
merged 1 commit into from
Oct 17, 2018
Merged

Linux does not HAVE_DNLC #8031

merged 1 commit into from
Oct 17, 2018

Conversation

ahrens
Copy link
Member

@ahrens ahrens commented Oct 16, 2018

Motivation and Context

Since Linux does not have the Directory Name Lookup Cache, we don't need
the code to manage it. The HAVE_DNLC CPP macro is never defined.

Note that if upstream (illumos) changes are made relating to the DNLC, we will have merge conflicts. But that was probably the case already, and having merge conflicts in areas where the functionality differs is a good thing because it brings our attention to changes that require more thought.

Carrying this dead code has more cost than benefit, and if we ever decide we need it, we can revive it by reverting this commit.

Description

Remove code that's under HAVE_DNLC.

How Has This Been Tested?

build.

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:

  • My code follows the ZFS on Linux code style requirements.
  • I have updated the documentation accordingly.
  • I have read the contributing document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • All commit messages are properly formatted and contain Signed-off-by.
  • Change has been approved by a ZFS on Linux member.

Since Linux does not have the Directory Name Lookup Cache, we don't need
the code to manage it.

Signed-off-by: Matthew Ahrens <[email protected]>
@ahrens ahrens added the Status: Code Review Needed Ready for review and testing label Oct 16, 2018
@ahrens ahrens added Status: Accepted Ready to integrate (reviewed, tested) and removed Status: Code Review Needed Ready for review and testing labels Oct 17, 2018
Copy link
Contributor

@dweeezil dweeezil left a comment

Choose a reason for hiding this comment

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

I've been wondering for some time whether we (ZoL) would ever remove some of this dead (for ZoL) code. LGTM, but I'll also point out the following might also be candidates:

HAVE_KSID
HAVE_MLSLABEL
HAVE_SPA_THREAD
HAVE_UIO_ZEROCOPY

@ahrens
Copy link
Member Author

ahrens commented Oct 17, 2018

@dweeezil thanks, I was missing a couple of those from my list.

@behlendorf behlendorf merged commit 5fbf85c into openzfs:master Oct 17, 2018
BrainSlayer pushed a commit to BrainSlayer/zfs that referenced this pull request Oct 18, 2018
Since Linux does not have the Directory Name Lookup Cache, we don't need
the code to manage it.

Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Tim Chase <[email protected]>
Reviewed-by: George Melikov <[email protected]>
Reviewed-by: Richard Elling <[email protected]>
Signed-off-by: Matthew Ahrens <[email protected]>
Closes openzfs#8031
ghfields pushed a commit to ghfields/zfs that referenced this pull request Oct 29, 2018
Since Linux does not have the Directory Name Lookup Cache, we don't need
the code to manage it.

Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Tim Chase <[email protected]>
Reviewed-by: George Melikov <[email protected]>
Reviewed-by: Richard Elling <[email protected]>
Signed-off-by: Matthew Ahrens <[email protected]>
Closes openzfs#8031
GregorKopka pushed a commit to GregorKopka/zfs that referenced this pull request Jan 7, 2019
Since Linux does not have the Directory Name Lookup Cache, we don't need
the code to manage it.

Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Tim Chase <[email protected]>
Reviewed-by: George Melikov <[email protected]>
Reviewed-by: Richard Elling <[email protected]>
Signed-off-by: Matthew Ahrens <[email protected]>
Closes openzfs#8031
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.

5 participants