Skip to content

Rewrite bcachefs in Rust #180

@link2xt

Description

@link2xt

From https://lore.kernel.org/linux-bcachefs/slvis5ybvo7ch3vxh5yb6turapyq7hai2tddwjriicfxqivnpn@xdpb25wey5xd/

A lot of codebase modernization has been happening over the past six months, to prepare for Rust. With the latest features recently available in C and in the kernel, we can now do incremental refactorings to bring code steadily more in line with what the Rust version will be, so that the future conversion will be mostly syntactic - and not a rewrite. The big enabler here was CLASS(), which is the kernel's version of pseudo-RAII based on __cleanup(); this allows for the removal of goto based error handling (Rust notably does not have goto).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions