Skip to content
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

Support swap without NODATACOW #30

Open
DemiMarie opened this issue May 1, 2022 · 2 comments
Open

Support swap without NODATACOW #30

DemiMarie opened this issue May 1, 2022 · 2 comments

Comments

@DemiMarie
Copy link

Swap on btrfs currently requires NODATACOW, which implies NODATASUM. bcachefs will be able to do swap with the normal I/O path, including CoW and checksumming. This is an RFE for btrfs to have the same ability.

@kdave
Copy link
Member

kdave commented May 2, 2022

IIRC it should be possible to wire the reads/writes to direct io, but this was not available at the time the support was added initially.

@DemiMarie
Copy link
Author

IIRC it should be possible to wire the reads/writes to direct io, but this was not available at the time the support was added initially.

It is, but this is only safe if btrfs does not need to allocate memory in the write path. Otherwise, a deadlock may result.

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

No branches or pull requests

2 participants