Skip to content

Support Linux 6.9 #70

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

Merged
merged 1 commit into from
Apr 9, 2025
Merged

Conversation

RoyWFHuang
Copy link
Collaborator

@RoyWFHuang RoyWFHuang commented Apr 1, 2025

To align with the best practices recommended by Linux kernel v6.9 API. This commit adds struct file and other related functions to support v6.9. The sturct bdev_handle is still retained for compatibility with v6.7

ref:
https://patchwork.kernel.org/project/linux-block/patch/20240427211305.GG1495312@ZenIV/#25828002 https://lore.kernel.org/all/[email protected]/

simplefs.h Outdated
Comment on lines 150 to 153
#elif SIMPLEFS_AT_LEAST(6, 8, 0)
struct bdev_handle
*s_journal_bdev_handle; /* v6.7+ external journal device */
#endif
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you check if the condition fits Linux v6.7 as well?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I believe this change was introduced in v6.7.
The commit:

d577c8aaed2035fb7bcc970058a9d8c46c26fcaa
ext4: Convert to bdev_open_by_dev()

modifies the ext4 filesystem by replacing struct block_device with struct bdev_handle.
(here is the patch lists: https://lore.kernel.org/all/[email protected]/#r)
And this commit is included in tag v6.7

$ git tag --contains d577c8aae
.....
v6.14-rc5
v6.14-rc6
v6.14-rc7
v6.7
v6.7-rc1
v6.7-rc2
v6.7-rc3
v6.7-rc4
.....

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thus, refine the use of SIMPLEFS_AT_LEAST macro.

To align with the best practices recommended by Linux kernel v6.9 API.
This commit adds struct file and other related functions to support v6.9.
The sturct bdev_handle is still retained for compatibility with v6.7

ref:
start to support struct file*
https://patchwork.kernel.org/project/linux-block/patch/20240427211305.GG1495312@ZenIV/#25828002
https://lore.kernel.org/all/[email protected]/

Move struct bdev_handle private to the block layer
https://lore.kernel.org/all/[email protected]/
@RoyWFHuang RoyWFHuang force-pushed the Feature/Upgrade_API branch from 1386ddc to 357a813 Compare April 9, 2025 13:58
@RoyWFHuang RoyWFHuang changed the title Support Linux 6.11 Support Linux 6.9 Apr 9, 2025
@jserv jserv merged commit cfa8aae into sysprog21:master Apr 9, 2025
2 checks passed
@jserv
Copy link
Collaborator

jserv commented Apr 9, 2025

Thank @RoyWFHuang for contributing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants