-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Retire z_nr_znodes #15274
Conversation
equivalent change can be made for linux |
There was a problem hiding this 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>
5df4703
to
841ce57
Compare
It is not needed and is going away soon(tm), facilitating other changes. See openzfs/zfs#15274
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
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
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
It is not needed and is going away soon(tm), facilitating other changes. See openzfs/zfs#15274
Motivation and Context
Description
How Has This Been Tested?
Types of changes
Checklist:
Signed-off-by
.