Skip to content

Support for linux 6.18 and up#84

Open
EricKim27 wants to merge 3 commits intosysprog21:masterfrom
EricKim27:master
Open

Support for linux 6.18 and up#84
EricKim27 wants to merge 3 commits intosysprog21:masterfrom
EricKim27:master

Conversation

@EricKim27
Copy link
Copy Markdown

@EricKim27 EricKim27 commented Apr 27, 2026

This commit adds changes to align with the changed linux kernel API in linux kernel 6.18 and up. This commit includes addition of fs_context operations, get_tree, modifications to fill_super, and other related functions.


Summary by cubic

Add Linux kernel 6.18+ support by migrating to the fs_context API and updating the mount path, plus inode state handling for 6.19+. Keeps compatibility with older kernels via conditional compilation; option parsing is disabled on 6.18+ for now.

  • New Features

    • Implemented fs_context path: init_fs_context, get_tree, and context ops; falls back to simplefs_mount on <6.18.
    • Updated fill_super signature for >=6.18 and wired it into get_tree_bdev.
    • Switched inode state check to inode_state_read_once on >=6.19 to match struct inode_state_flags.
    • Disabled simplefs_parse_options during fill_super on >=6.18; kept parsing for <=6.17.
  • Refactors

    • Formatted code and adjusted comments/includes to match the coding style; no behavior changes.

Written for commit 37cd442. Summary will update on new commits.

Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

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

1 issue found across 4 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="fs.c">

<violation number="1" location="fs.c:18">
P1: 6.18+ fs_context mount path omits option parsing callbacks, so mount options are not processed (functional regression).</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

Comment thread fs.c Outdated
@EricKim27 EricKim27 marked this pull request as draft April 27, 2026 10:16
@EricKim27 EricKim27 marked this pull request as ready for review April 27, 2026 10:16
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

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

No issues found across 5 files

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.

1 participant