-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Linux 6.19 compat #18053
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
base: master
Are you sure you want to change the base?
Linux 6.19 compat #18053
Conversation
|
Ahh, new when Seems like it keeps running ok, but obviously gonna need to do some updates. i'll have a look when I can this week. |
Sponsored-by: https://despairlabs.com/sponsor/ Signed-off-by: Rob Norris <robn@despairlabs.com>
Since Linux 4.12 (torvalds/linux@19809c2da28ae) __GFP_HIGHMEM has been automatically added to calls to __vmalloc() internally, so we don't need it anymore. This is good, because since 6.19 the kernel warns if you use __GFP_HIGHMEM. Sponsored-by: https://despairlabs.com/sponsor/ Signed-off-by: Rob Norris <robn@despairlabs.com>
It hasn't been necessary since Linux 3.13 (torvalds/linux@a57a49887eb33), and since 6.19 the kernel warns if you use it. Sponsored-by: https://despairlabs.com/sponsor/ Signed-off-by: Rob Norris <robn@despairlabs.com>
1651202 to
3125c8b
Compare
|
Last push hopefully sorts out the vmalloc flag changes. |
behlendorf
left a comment
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.
Thanks again Rob for working through these changes. The churn is never ending! It's nice that what was needed was pretty minimal this time around. Plus those new warnings prompted us to drop those old flags.
Motivation and Context
6.19-rc1 arrives with the gift of minimal changes 🎄.
Description
Two changes (over three commits):
i_stateinstruct inodeis no longer directly accessible, and a macroinode_state_read_once()is provided to get it. I've added a test for that macro and a definition for older kernels. We only use it in one place, so all together a very small change.__vmalloc()is now warning on "invalid" GFP flags, which pointed out places where we're no longer correctly using__GFP_HIGHMEMand__GFP_COMP. Adjusted, see commit messages.How Has This Been Tested?
Compile checked on: 4.19.325 5.10.240 6.1.159 6.6.101 6.12.41 6.18.0 and 6.19-rc1.
ZTS passed: 6.19-rc1.
Types of changes
Checklist:
Signed-off-by.