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

Retire z_nr_znodes #15274

Merged
merged 1 commit into from
Sep 18, 2023
Merged

Retire z_nr_znodes #15274

merged 1 commit into from
Sep 18, 2023

Conversation

mjguzik
Copy link
Contributor

@mjguzik mjguzik commented Sep 14, 2023

Retire z_nr_znodes

Added in ab26409db753 ("Linux 3.1 compat, super_block->s_shrink"), with
the only consumer which needed the count getting retired in 066e82522101
("Linux compat: Minimum kernel version 3.10").

The counter gets in the way of not maintaining the list to begin with.

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)
  • Library ABI change (libzfs, libzfs_core, libnvpair, libuutil and libzfsbootenv)
  • Documentation (a change to man pages or other documentation)

Checklist:

@mjguzik
Copy link
Contributor Author

mjguzik commented Sep 14, 2023

@amotin

equivalent change can be made for linux

Copy link
Member

@amotin amotin left a comment

Choose a reason for hiding this comment

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

It seems z_nr_znodes was added on Linux 12 years ago to implement zpl_nr_cached_objects() VFS callback. I don't see it there any more. FreeBSD code seems just copied it without particular reason during OpenZFS integration. I am not sure removing it is a big saving, but if it makes sense in your bigger plans and we won't need it back, I'm fine about removing it, it is surely not needed now.

Linux code is identical, so I'd do it for both platforms in once PR to not diverge. Once CI passes it, it should probably be fine.

Added in ab26409 ("Linux 3.1 compat, super_block->s_shrink"), with
the only consumer which needed the count getting retired in 066e825
("Linux compat: Minimum kernel version 3.10").

The counter gets in the way of not maintaining the list to begin with.

Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
@mjguzik mjguzik changed the title FreeBSD: retire z_nr_znodes Retire z_nr_znodes Sep 16, 2023
freebsd-git pushed a commit to freebsd/freebsd-src that referenced this pull request Sep 16, 2023
It is not needed and is going away soon(tm), facilitating other changes.

See openzfs/zfs#15274
@behlendorf behlendorf added the Status: Accepted Ready to integrate (reviewed, tested) label Sep 18, 2023
@behlendorf behlendorf merged commit ee720ad into openzfs:master Sep 18, 2023
18 of 26 checks passed
behlendorf pushed a commit to behlendorf/zfs that referenced this pull request Sep 19, 2023
Added in ab26409 ("Linux 3.1 compat, super_block->s_shrink"), with
the only consumer which needed the count getting retired in 066e825
("Linux compat: Minimum kernel version 3.10").

The counter gets in the way of not maintaining the list to begin with.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Closes openzfs#15274
behlendorf pushed a commit that referenced this pull request Sep 19, 2023
Added in ab26409 ("Linux 3.1 compat, super_block->s_shrink"), with
the only consumer which needed the count getting retired in 066e825
("Linux compat: Minimum kernel version 3.10").

The counter gets in the way of not maintaining the list to begin with.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Closes #15274
lundman pushed a commit to openzfsonwindows/openzfs that referenced this pull request Dec 12, 2023
Added in ab26409 ("Linux 3.1 compat, super_block->s_shrink"), with
the only consumer which needed the count getting retired in 066e825
("Linux compat: Minimum kernel version 3.10").

The counter gets in the way of not maintaining the list to begin with.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Closes openzfs#15274
bsdjhb pushed a commit to bsdjhb/cheribsd that referenced this pull request Feb 3, 2024
It is not needed and is going away soon(tm), facilitating other changes.

See openzfs/zfs#15274
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.

None yet

3 participants