-
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
Linux 4.12 compat: super_setup_bdi_name() #6089
Conversation
@behlendorf, thanks for your PR! By analyzing the history of the files in this pull request, we identified @dechamps, @chrisrd and @gmelikov to be potential reviewers. |
config/kernel-bdi.m4
Outdated
dnl # 2.6.32 - 2.6.33, bdi_setup_and_register() is not exported. | ||
dnl # 2.6.34 - 3.19, bdi_setup_and_register() takes 3 arguments. | ||
dnl # 4.0 - 4.10, bdi_setup_and_register() takes 2 arguments. | ||
dnl # 4.11 - x.y, super_setup_bdi_name() new interface. |
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.
4.12?
module/zfs/zfs_vfsops.c
Outdated
@@ -1606,9 +1607,8 @@ zfs_domount(struct super_block *sb, zfs_mnt_t *zm, int silent) | |||
sb->s_blocksize = recordsize; | |||
sb->s_blocksize_bits = ilog2(recordsize); | |||
zfsvfs->z_bdi.ra_pages = 0; |
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.
Do we need to modify sb->s_bdi->ra_pages for 4.12+?
Also, we may want to get rid of z_bdi to save space.
d053c16
to
cb8d5e3
Compare
@tuxoko good points, how about this. The updated patch refactors the code such that all backing_dev_info struct management is handled in the wrapper functions. After a successful call to |
One nit, the commit title should be 4.12 |
Indeed, I'll fix it in the merge unless I need to refresh this for other reasons. Thanks. |
All filesystems were converted to dynamically allocated BDIs. The destruction of backing_dev_info structures is handled as part of super block destruction. Refactor the code to abstract away the details of seting up and destroying an sbi. Reviewed-by: Chunwei Chen <david.chen@osnexus.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
cb8d5e3
to
195d47b
Compare
All filesystems were converted to dynamically allocated BDIs. The destruction of backing_dev_info structures is handled as part of super block destruction. Refactor the code to abstract away the details of creating and destroying a BDI. Reviewed-by: Chunwei Chen <david.chen@osnexus.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes openzfs#6089
All filesystems were converted to dynamically allocated BDIs. The destruction of backing_dev_info structures is handled as part of super block destruction. Refactor the code to abstract away the details of creating and destroying a BDI. Reviewed-by: Chunwei Chen <david.chen@osnexus.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #6089
This includes code that was mistakenly left out of the 7dae2c8 merge into 0.6.5.10. Its inclusion fixes a kernel warning on Kubuntu 17.04: WARN_ON(sb->s_bdi != &noop_backing_dev_info); Reviewed-by: Chunwei Chen <david.chen@osnexus.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes openzfs#6089 Closes openzfs#6324 (backported from zfs upstream commit 7dae2c8) Signed-off-by: Colin Ian King <colin.king@canonical.com>
This includes code that was mistakenly left out of the 7dae2c8 merge into 0.6.5.10. Its inclusion fixes a kernel warning on Kubuntu 17.04: WARN_ON(sb->s_bdi != &noop_backing_dev_info); Reviewed-by: Chunwei Chen <david.chen@osnexus.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes openzfs#6089 Closes openzfs#6324 (backported from zfs upstream commit 7dae2c8) Signed-off-by: Colin Ian King <colin.king@canonical.com>
This includes code that was mistakenly left out of the 7dae2c8 merge into 0.6.5.10. Its inclusion fixes a kernel warning on Kubuntu 17.04: WARN_ON(sb->s_bdi != &noop_backing_dev_info); Reviewed-by: Chunwei Chen <david.chen@osnexus.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #6089 Closes #6324 (backported from zfs upstream commit 7dae2c8) Signed-off-by: Colin Ian King <colin.king@canonical.com>
All filesystems were converted to dynamically allocated BDIs. The
destruction of backing_dev_info structures is handled as part of
super block destruction.